Making STK500 with ATmega32

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

Hai
AVR expert

After searching some information.The STK500 made with 8535.

Googling STK500 source code didn't found complete files to built the .hex/.ebn.

Anyone have complete STK500 source code?*.C and *.H

Could I made STK500 with ATmega32 basically from
attachment file..STK500.ebn directly by modified avrdude programming option?

Regards
Jeckson

Attachment(s): 

.

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

If you want an STK500 development board, buy one. You may even get one s/h on eBay.

Look at the STK500 schematics. You will have to reproduce the hardware including the Tiny2313.

Yes. I suppose that if you have the mega8535 bootloader installed in a mega8535, you can upload the "skk500.ebn". It looks as if it is encrypted. So I would be very doubtful of running on a different CPU.

OTOH, if you just want to have an stk500v2 protocol ISP programmer, there are several to choose from. And they should run on any AVR that has 512 bytes of SRAM. e.g. mega48, mega8, mega32 ...

David.

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

Quote:

Yes. I suppose that if you have the mega8535 bootloader installed in a mega8535, you can upload the "skk500.ebn". It looks as if it is encrypted. So I would be very doubtful of running on a different CPU.

There is a "trick" you can pull to get an unencrypted copy of the .ebn binary. That is to use AVRProg to start the STK500 upload procedure but after programming and before it verifies pull the programming cable before it gets a chance to set the lock bits at the end. The accessible, unencrypted binary can then be extracted from the chip though I doubt it's going to be THAT easy to modify for a non-8535

Note also that the STK500 design doesn't use a bootloader to reprogram the 8535 but a second AVR (an old 1200 is it?) that's only job is to activate when the PROGRAM button is held and it takes the firmware update from the PC side and programs it into the 8535. So you need to duplicate the functionality of this chip (which appears to be implementing the AV109 protocol)

Like David I'd either just buy an STK500 (maybe 2nd hand on ebay though I doubt many people ever sell them!) or look at some other AVR dev board - the Arduino perhaps being the obvious "modern" choice? Not only is it a dev board but it can be converted into a dedicated ISP programmer if you choose. Of course you are going to miss out on other STK500 features like programmable PSU, programmable oscillator and HV programming.

Cliff

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

clawson wrote:
Of course you are going to miss out on other STK500 features like programmable PSU, programmable oscillator and HV programming.

LEDs, Switches, nice 10-pin "standardized " headders allowing accedd to all I/O port pins, reliability, flexibility in using most any flavor AVR, dada, dada, dada...

You can avoid reality, for a while.  But you can't avoid the consequences of reality! - C.W. Livingston

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

Hai
All

Quote:
If you want an STK500 development board, buy one. You may even get one s/h on eBay.

I didn't have resource for that...

Quote:
OTOH, if you just want to have an stk500v2 protocol ISP programmer, there are several to choose from. And they should run on any AVR that has 512 bytes of SRAM. e.g. mega48, mega8, mega32 ...

What's the alternatives..Is that able to program with HVSP and HVPP?

Regards
Jeckson B

.

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

Unless you have a death wish, you will never need HVSP or HVPP. All AVRs work just fine with ISP. There are many programs that will do the ISP. The hardware can be very simple even with a USB connection to the PC. e.g. an Arduino or a USBasp board.

With an Arduino, you can program your 89Sxxxx devices too.

At some stage you may want to debug a chip with debugWire or JTAG. In which case you buy a Dragon or JTAGICE-mkII.

It really is too complicated and too expensive to make a Dragon or STK500 or STK600 yourself. But reliable ISP is simple and cheap.

Using an LPT port for ISP is even cheaper. It is not necessarily very reliable. And modern PCs only have USB.

David.

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

Quote:

What's the alternatives..Is that able to program with HVSP and HVPP?

So, you're asking about the cheapest programmers that can do high-voltage programming?The AVR Dragon is one.

Why do you need high-voltage programming?

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

Hai
Great Johan and David

Quote:
Unless you have a death wish, you will never need HVSP or HVPP. All AVRs work just fine with ISP. There are many programs that will do the ISP. The hardware can be very simple even with a USB connection to the PC. e.g. an Arduino or a USBasp board.

Quote:
Why do you need high-voltage programming?

I see that there's some junk ICs at electronics dump.
Almost believe that are AVR's.Mostly posses by surplus and flea rude market.
Bought from that market ideal for me than purchased the new one(maybe when I had money much).

Quote:
At some stage you may want to debug a chip with debugWire or JTAG. In which case you buy a Dragon or JTAGICE-mkII.

Quote:
So, you're asking about the cheapest programmers that can do high-voltage programming?The AVR Dragon is one.

Yes..The Dragon is very nice.But I didn't have resource to get that like STK500 e-bay above.

Quote:
With an Arduino, you can program your 89Sxxxx devices too.

Using an LPT port for ISP is even cheaper. It is not necessarily very reliable. And modern PCs only have USB.

Yes,I already knew that..

I found this...
http://www.der-hammer.org/hvprog...
for ISP,HVSP and HVPP.

also there's
http://www.siwawi.arubi.uni-kl.d...

For JTAGICE but I didn't needed that.

Looking for complete STK500 sourcecode is the one that I needed.Modified for ATmega32.

Thank you
Jeckson

.

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

Quote:
Bought from that market ideal for me than purchased the new one(maybe when I had money much).

Well you can read the markings on the chips. This will tell you whether they are AVRs. They could of course be damaged.

Quote:
I found this...
http://www.der-hammer.org/hvprog...
for ISP,HVSP and HVPP.

Yes. I am sure that this will work. It looks a lot of hard work to build !! It will cost you some money for the parts.
The other link is not very useful to you at all.

Quite honestly, you could report which chips you have bought. And ask if there is someone with a real STK500 to 'restore' them for you. You mail them off to the kind person. He restores them, and mails them back to you. You pay the postage.

If you have already made a proper board and want a ATmega8535L (PDIP40) for it, email me.

David.

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

Hai
Thank's David

Anyone have STK500 complete source code?

Making open-source made Ice ball
Like Linux,Arduino or perhaps GCC where place above AVRstudio at this forum.

Jeckson

.

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

Quote:

Anyone have STK500 complete source code?

AFAIK, it's proprietary to Atmel.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

Hai
AVR expert

How about this....

http://www.scienceprog.com/avr-s...

at comment below...

[/i]Dear Sir,
Can the chip ATMEGA8535 be replaced by ATMEGA16?
thanks!

Can the chip ATMEGA8535 be replaced by ATMEGA16?
ATMEGA8535 is pin compatible with Atmega16 but has less features.
main differences are that ATMEGA8535 has 8k flash, 512b RAM, 512b EEPROM while ATMEGA16 has 16k flash, 1k RAM, 512b EEPROM. Atmega16 has different boot-loader area where page size is 64 words instead of 16. No read write section starts at 0x1C00 instead of 0xC00.
Interrupt vectors uses 2byte addresses instead of 1. They have two different fuse bits – I think this shouldn’t affect.
According to this I would say that probably moving from Atmega8535 to Atmega16 should work.
Read more about commutability here

Regards
Jeckson

.

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

So..No Change for ATmega32 or 16 with STk500??

In case someone have trouble for HV programming..here's only suggest.Any another suggestion are welcome.

1.Buy AVRDragon.....No can do
2.Built STK500(http://www.der-hammer.info/hvpro...)....NO can do
3.Built AVR-doper and derivative(http://www.obdev.at/products/vus...)..No Can do
4.Built metalab programmer(http://metalab.at/wiki/Avrprog-m...)...No can do
5.Built Elm-Chan(http://elm-chan.org/works/avrx/r...) or http://evertdekker.com/Joomla/in....

Did I still promoting the Dragon?

I'm still forget some programmer...

JXXK

.