AT90S2343 can't be programmed

Go To Last Post
14 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi all,

I have problem using the 2343 which made it unable to be programmed.

Which situations could cause the AVR-chip to prevent programming/writting? Reading and erase is possible though. By mistake I left the RESET-pin untouched when trying to program, but this shouldn't ruin the AVR. I did verify that no security/lock bits or fuses are programmed(the erase will unprogram these), but it fails the health check. In the current design the configuration is used as described in the STK200 manual part 10.3 separating the ISP wires from the custom circuit with 1K resistors. All ISP pins are configured as inputs.

Thanks in advance.

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

If no fuses are programmed ('1'), then both the SPI and the internal RC oscillator are disabled. Both these fuses are programmed ('0') by default, though. I think you might have been fooled by the 1=unprogrammed, 0=programmed confusion. You wouldn't be the first one :) Please note that fuse bits are NOT reset when you erase your device, only the lock bits.

I think I need some more information regarding your circuit in order to help you... I assume from what you say that you're using the STK200 dongle. Is this correct? Where's your device placed? In a target board? Have you checked that your voltage levels are adequate for programming in accordance with the datasheet? Please describe your connections. How have you configured your pins as inputs?

More info on the '2343's SPI interface can be found in the device datasheet.

Morten, AVR tech. support, Atmel FAE

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

All fuses and lock bits are unprogrammed('1'). But I cannot alter any of them. I have no write-contact to the AVR; the core of my problem. Thus the AVR ISP complains about the 2343 device is not detected. But what could cripple the 2343 like this?

I am using the STK200 and dongle.

Torp

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i think you do something wrong!!!

Jacob

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi!

If both your fuses are unprogrammed ('1'), then you cannot access your device in regular Serial Programming Mode. You must enable the SPIEN fuse in High-Voltage Mode if you want your part to be detectable in regular serial mode.

Morten, AVR tech. support, Atmel FAE

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OK, thanks Morten.

But before I try that: if the AVR fails the health check, then there is no way it will work again, right?

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi!

Not necessarily! If the health check uses the ISP protocol (which is the case), and the part has disabled this protocol, no data can be extracted and the check will necessarily fail. You part might totally recuperate if you can enable the SPIEN fuse again.

Morten

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Morten,

After reading the docs I can't see a way to high-voltage program the AVR with a STK200 kit. I have compared with the STK500 User Guide. The STK500 is fitted for this using AVR Studio. Is there a document describing this subject in relation to STK200, AVR tool and serial interface configuring?

Thanks for your help.

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello Michael,

I really don't see a way of doing this with an STK200! It doesn't support the Tiny28 and it cannot provide the sufficient voltage. If you can see a way, please describe it. The STK500 is programmed by a built-in programmer on the board itself AVR Studio provides an interface only.

Morten, AVR tech. support, Atmel FAE

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hm, seems that I have to advance to STK500 to kick life into this little AVR.

But thank you for your help. Regards, Torp

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

sir,
will ICE200 supports AT90LS2343.
please respond quickly.

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

Sorry, but the ICE200 doesn't support this device.

Best regards,

Morten, AVR tech. support, Atmel FAE

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi michael,
I was having the same problem as yours. Some times when you power on the ATS2343 it reads its RCEN bit at 1 (internal RC disable) even if this bit is programmed at 0 (RC enable). To prevent this component bug, I power on the AT90S2343 few seconds, I power off the STK200 1 second and i power on again the STK200, and after all this the AT90S2343 reads well the RCEN bit and you can program the AT90S2343 with the SPI. I think this is a problems of older version of AT90S2343
I hope this will help you.
Vincent

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I maybe experience the same. Sometimes I have to toggle power to "kickstart" the 2343. Also(in relation to the previous postings in this thread) another strange behavior of the 2343:
I have borrowed a STK500 and after high-voltage programming the 2343 I am now able to program it. But when I insert it into the STK200 the AVR ISP does not detect it. To verify the dongle and kit I have successfully programmed the 8515 with STK200. Strange I think.

Torp

admin's test signature