STK500 and AT90S2343

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

Hi Everybody,

I have a problem with the STK500. I tried to use it to program some type of AVR. I was able to program AT90S8515, AT90S2313 with ISP, and parallel programing too. Although I am not able to program AT90S2343 8pin device. I verified its lockbits, fusebits, with an another prtogrammer device these are in the correct positions, I tried to program an another IC too. I followed exactly the User Guide steps, and notices too. The AVRstudio sent the next message:

Setting device parameters, serial programming mode ..OK
Entering programming mode.. FAILED!
Leaving programming mode.. OK

This message was when I tried to erase, verify lock bits, fuses also. It seems like the 2313 can not communicate with STK500.
Is there anybody who has good ideas to solve my problem?

admin's test signature
 

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

Hello Gergely,

The most common mistake when trying to program the AT90S2343, is not connecting RST on PORTE to PB5 on PORTB. Have you done this? It's necessary to provide a reset line to the programming interface. This is described in table 3-2 of the STK500 user manual.

The other possibility I can think of, is fuse settings. If the SPIEN fuse is unprogrammed ("1"), then the Serial Programming Interface is disabled and you must program your device in Serial High Voltage Programming Mode (NOTE! Not parallel mode!). This is done in accordance with the settings in table 3-3. Have you tried this?

The other fuse is the RCEN fuse. When this fuse is programmed, the AT90S2343 runs on internal RC oscillator. This is the default state of this fuse! This means that you must configure your board to clock its SPI interface at the same pace as the MCU, e.g. 1MHz at 5V programming voltage. Please try this setting. It's done under the "Board" tab of the STK500 interface in AVR Studio.

These were some ideas. Let us know if they didn't help!

Morten, AVR tech. support, Atmel FAE

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

Hi Morten,

Thank you your helpful reply. I have already tried all your ideas. The main problem is that, the AVRstudio is not able to read-write nothing from-in the 2343. Of course I tried to toggle the fuse bits, and lock bits also with High-voltage serial programming mode, but it is impossible also. I verified more than once the correct connections, I followed step-by-step the User Guide. The result is always the same. I think the problem is about communication between the AVRStudio and STK500.
Thank You for helping.

admin's test signature