STK500 and programming non-AVR devices

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

I know that this query is purely heretic over here by it's very nature, so bear with me...

I have a bunch of 89S8252 devices around, and now i tried to program them with the STK500. The docs allows programming the 89S52 chip, and the 89S8252 has the identical pin layout and programming algorithm, so it should work. However, with several chips (well, actually all of them) i was unable to program them (via AVRstudio's programmer), it immediately failed with the well-known window showing the communication error popup.

Now, DID anyone out there succeed in programming those chips via the STK500?

Thanks a lot,

-- Thilo

PS: programming AVR chips works fine, so the STK500 board as such is working. I just don't know if it's some sort of protest with the 89 devices, or if it doesn't work in general.

Einstein was right: "Two things are unlimited: the universe and the human stupidity. But i'm not quite sure about the former..."

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

The AT89S8252 uses a completely different set of SPI commands to the AT89S52 or the AVR family. Surely your first step was to consult the data sheets. An 8252 uses a 3 byte SPI command. The AVR and S52 or S53 use a 4 byte SPI command.

As far as I know, there is no support in the STK500 firmware that will handle a 8252.

Personally I use a AVR910 type of programmer for my AT89S8252 chips. This is driven by AvrProg from the Studio menu.

The current AVR109 firmware will program the AT89S52, S53, S8252, S8253 chips directly from the AvrProg GUI.

An AVR109 programmer is nothing more than a RS232 link, Tiny2313 and a ISP header. So you can just insert a Tiny2313 into the STK500 and use it as a programmer.

David.

Edit. I had mistyped AVR109 instead of AVR910

Last Edited: Mon. Feb 22, 2010 - 09:15 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think there is an appnote for programming certain of the "other" ATxxx cips , via STK-500

http://www.atmel.com/dyn/resourc...

And it's mentioned in the programming protocol
http://www.atmel.com/dyn/resourc...

Don't know if it's obsolete .... in recent studios but ...

/Bingo

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

Thanks a lot, Bingo & David. Actually i DID consult the datasheet ;-) , but my fault was to simply assume that there wouldn't be any difference in programming between an 89S52 and an 89S8252.

Now, bear with me... AVR009 describes a SELF-programming solution, which assumes a boot loader, right? How would i just

Quote:
insert a Tiny2313 into the STK500 and use it as a programmer

?

-- Thilo

Einstein was right: "Two things are unlimited: the universe and the human stupidity. But i'm not quite sure about the former..."

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

Sorry, I had mistyped the app note number. This is an external programmer.

The AVR910 firmware for a programmer is ready and waiting for you to program into a Tiny2313 chip.

Then you connect the Tiny2313 SPI pins to the ISP header on your AT89S8252 board. Or you wire a ZIF socket for bare chips.

i.e. you have a proper programmer that receives commands via RS232. (or USB->RS232 cable)

David.