Re: [AVR-Chat] STK500 ISP Mode Error
2007-09-06 by Klaus Ruebsam
Yahoo Groups archive
Index last updated: 2026-04-28 22:41 UTC
Thread
2007-09-06 by Klaus Ruebsam
Hi Bruce, try to erase the chip once using HighVoltage programming (with the two 10pin-ribbon cables. Then hopefully everything should be fine again with the 6pin cable. The reason for it might be a wrong programming of fuses (to what ever reason). Good luck! regards, Klaus -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
2007-09-06 by John Samperi
At 04:59 PM 6/09/2007, you wrote: >STK500 Osc = 1.843 MHZ and ISP Freq = 3.998 KHZ. I use 250KHz as standard which is good enough for newer chips. >I can actually program the chip, ( AVR 1200 - 12, Also same using 2313 - >10 ). There are several types of 1200 but they DO NOT have internal oscillators, the same goes for the 90S2313. Only the new Tiny2313 has internal oscillator. Regards John Samperi ******************************************************** Ampertronics Pty. Ltd. 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA Tel. (02) 9674-6495 Fax (02) 9674-8745 Email: john@ampertronics.com.au Website http://www.ampertronics.com.au *Electronic Design * Custom Products * Contract Assembly ********************************************************
2007-09-06 by Richard Reeves
John, > There are several types of 1200 but they DO NOT have internal > oscillators, the same goes for the 90S2313. Only the new Tiny2313 has > internal oscillator. The 1200 did. There was the 1200, shipped with the internal RC oscillator disabled, and the 1200A, with it shipped enabled. Richard --- "Sve je bilo tako tiho a nemirno..." http://www.musicvangogh.com/
2007-09-06 by Bruce
I like working with the AVRs, but just do it for fun. Lately, I have been having a problem. When I connect to the AVR Programer, select the Fuses or Lockbits tabs, I get the error: "ISP Mode Error " I have check to make sure that on the Board tab, that the ISP freq is less than 1/4 of the target clock. STK500 Osc = 1.843 MHZ and ISP Freq = 3.998 KHZ. I can actually program the chip, ( AVR 1200 - 12, Also same using 2313 - 10 ). I can not access the Fuses or Lockbits, which I think prevents me from using the internal Oscillator. This use to work. When I select Fuses, all selection are grayed out and have a small red "?" mark. Under Lockbits, "Mode 1 is checked, but has a small red "?", as does mode 2 and 3. Smart Warning and Auto Verify are checked by default. What gives ? Other Facts. This problem was also under AVR 4.x, upgraded to v 4.13. No change. Jumpers Vtarget, Aref, Reset, Xtal 1 are all ON. OscSel set to 2,3. All other jumpers are off. If more info is needed, please ask. Thanks Bruce
2007-09-06 by John Samperi
At 04:24 PM 6/09/2007, you wrote: >The 1200 did. There was the 1200, shipped with the internal RC >oscillator disabled, and the 1200A, with it shipped enabled. So it was! Sorry. Regards John Samperi ******************************************************** Ampertronics Pty. Ltd. 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA Tel. (02) 9674-6495 Fax (02) 9674-8745 Email: john@ampertronics.com.au Website http://www.ampertronics.com.au *Electronic Design * Custom Products * Contract Assembly ********************************************************
2007-09-07 by Bruce
Thanks to All, Ok, I under the theory that I may have installed an AVR without internal clocks. AVR 1200. I have now installed AVR 8515. Still same problem. On doing a Highvoltage programming, which I have never done before. I get a failure. The title of the failure is the same. " ISP Mode Error ". Suggest I check that ISP freq in the board page is below 1/4 of clock freq. In the program box at the bottom, it get the following Reading FLASH input file.. OK Entering programming mode.. FAILED! Leaving programming mode..OK! I set the jumper as the STK500 manual stated for HV programming. Vtarget On, AREF Off, Reset On, Xtal1 on, OSCSEL 1&2, I am beginning to think I have a problem in the STK500 board. I think the problem started when I did a upgrade to 4.x and flashed the board. I flashed the board again when I upgraded to 4.13 with no change in the problem. As I have stated, I changed the AVR to 8515. The STK500 programs in ISP Programing mode OK. Just no access to Fuse, LockBits and it would seem, HighVoltage Programming. Bruce
2007-09-07 by Klaus Ruebsam
Hi Bruce, in case you have (however) accidently tampered the internal program of your STK500 you may restore that as follows: Disconnect any cables from the two ISP connectors Do not insert any device into the programming sockets Press the programming button just besides the ISP-connector and keep it pressed turn on the Power for the STK500 Release the programming button The STK500 should go into upgrade-mode Now start AVR-Studio (the next steps a have to recover from my memory) Select "Tools" -> "AVRPROG". A device of type 8515 (or 8535 I´m not 100% sure) should be "selected" in the box (you can´t change it anyhow) Select the file stk500.ebn in the following directory: C:\Program Files\Atmel\AVR Tools\STK500 as upgrade file and hit the upgrade/program button. That will write the latest (at least latest according to the version of AVR-Studio you are using) STK500 firmware version to your STK. I just had a similar problem last week and for me that and nothing else was the solution. No idea how I broke the STK. I can´t find the proper document, but I´m sure the above procedure is described much better somewhere in the docs. In general HV-programming should work! One last idea: your power supply is working properly?!? Not too high, not to low in voltage? Good luck! Kind regards, Klaus -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
2007-09-08 by Bruce
Klaus, Ok, I tried what you suggested below. However, it still failed to work. While looking very closely and repeating the procedure several times, I noted on the STK500 Interface box, a selector called " Programming Mode ". Looking closely, I observed that I had the option of selecting PP/HVSP mode. (light bulb goes off in head ) I went back and tried what you suggested for High Voltage programming again, with the PP/HVSP selected. Works Fine now. I did say I never done High Voltage Programming didn't I ? LOL. Also, Noted that the STK500 user guide, pdf, was unclear about the OSCSEL jumper. The picture shows pin 2 & 3 selected. The instructions say pins 1 & 2. I left the pins at 2 & 3 this time. Anyway, Everything is working fine now. Can select Fuses, Lockbits and do high voltage programming. One question. Why did the HV programming fix the problem ? Or is it just one of the mystics of the universe. Just curious. Many Thanks Bruce Klaus Ruebsam wrote:
>Hi Bruce, > >in case you have (however) accidently tampered the internal program of your STK500 you may restore that as follows: > >Disconnect any cables from the two ISP connectors > >Do not insert any device into the programming sockets > >Press the programming button just besides the ISP-connector and keep it pressed > >turn on the Power for the STK500 > >Release the programming button > >The STK500 should go into upgrade-mode > >Now start AVR-Studio > >(the next steps a have to recover from my memory) > >Select "Tools" -> "AVRPROG". A device of type 8515 (or 8535 I´m not 100% sure) should be "selected" in the box (you can´t change it anyhow) > >Select the file stk500.ebn in the following directory: C:\Program Files\Atmel\AVR Tools\STK500 as upgrade file > >and hit the upgrade/program button. > >That will write the latest (at least latest according to the version of AVR-Studio you are using) STK500 firmware version to your STK. > >I just had a similar problem last week and for me that and nothing else was the solution. No idea how I broke the STK. > >I can´t find the proper document, but I´m sure the above procedure is described much better somewhere in the docs. > >In general HV-programming should work! > >One last idea: your power supply is working properly?!? Not too high, not to low in voltage? > >Good luck! > >Kind regards, > >Klaus > >
2007-09-08 by Bruce
Correction, Just noted that OSCSEL pins go 3-2-1, and not 1-2-3 as I thought. I had the pins in the correct position the second time, and in the wrong position the first time I tried the HV programming. Bruce Bruce wrote:
> >I did say I never done High Voltage Programming didn't I ? LOL. > >Also, Noted that the STK500 user guide, pdf, was unclear about the >OSCSEL jumper. The picture shows pin 2 & 3 selected. The >instructions say pins 1 & 2. I left the pins at 2 & 3 this time. > > > > > >
2007-09-08 by Klaus Ruebsam
Hi Bruce, Good to hear that you are up again. The HV-programming works dofferent to the normal ISP programming. As I´ve never bothered about the differences I´m sorry to say: can´t explain. But as far as I remember, the timing is not depending on any xtal, thus devices "dead" due to wrong programming of oszillator-settings can by "reanimated" (as you succesfully did) by means of HV-programming. Now have fun again with your AVR devices!