avrdude error w/ STK500 v.2

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

I recently purchased an STK500 from Atmel, but it seems like avrdude cannot program it correctly. The output looks like this:

avrdude -p atmega8 -P com2 -c stk500  -v -v  -U flash:w:demo.hex 

avrdude: Version 4.4.0cvs
         Copyright (c) 2000-2004 Brian Dean, http://www.bdmicro.com/

         System wide configuration file is "C:\WinAVR\bin\avrdude.conf"

         Using Port            : com2
         Using Programmer      : stk500
avrdude: stk500_getsync(): not in sync: resp=0x00
make.exe: *** [program] Error 1

> Process Exit Code: 2

However Richard Thomas' experimental version of avrdude can program it correctly, but only after this output:

Using Port            : com2
         Using Programmer      : stk500
         Probeing stk500 Firmware-Version 1.x...
avrdude: STK500 Firmware 1.x NOT detected
         Auto-switch to Programmer "STK500V2".
         Use -c stk500v2 to avoid this delay.
         AVR Part              : ATMEGA8
         ...

The programming then works fine.

The original avrdude software does not seem to do any firmware (?) check like this. I know AVR studio asked me to upgrade the STK500 firmware to it's latest version when I started using it. So perhaps the latest version is not supported by avrdude?

Any comments? Am I the only one with this problem?

/Jakob Selbing

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

Run Martin Thomas avrdude with stk500v2 option to skip this check. AFAIK, STK500_v2 development is in progress for the original avdude, but the old version doesn't support v2.

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

Sorry, I meant Martin Thomas, not Richard Thomas.

OK, I was worried that Thomas' version wasn't reliable? Maybe not...

/Jakob Selbing

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

My experimental version seems to work reliably for a lot of users. So far it can be used as an preliminary solution to get avrdude and stk500 fw2.x working if you have problems with the offical avrdude5.0beta (the last stable avrdude release 4.4 will not work with firmware V2.x). In the official avrdude a different implementation and different parameters are used for most of the stk500fw2 functions. Although I've got some feedback from users who report that my experimental version did work for them where 5.0beta did not work my version is still only an interim solution. Please give the avrdude 5.0beta from the official developers a try and send feedback to the avrdude-dev list, so all bugs can be fixed for the avrdude 5.0 release.
Martin Thomas

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

I couldn't find a win32 version of 5.0 beta :(

/Jakob Selbing

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

> I couldn't find a win32 version of 5.0 beta

There is. Look into the archives of the avrdude mailing list, in one of the
followups to the 5.0 beta announcement, Colin O'Flynn posted a
pointer to a win32 version.

Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.