stk500 commandline question.

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

Hello guys ,girls.
I'm tring to program my atmega64 fuses with stk500.exe and the AVR ISPMKII.

I did stk500.exe -cUSB:0000A0015326 -datmega64 -q
and i got

Connected to STK500 V2 on port USB:0000A0015326
Device parameters loaded
Programming mode entered
Reading fuse bits...
Fuse byte 0 read (0x7F)
Fuse byte 1 read (0xD9)
Fuse byte 2 read (0xFF)
Programming mode left
Connection to STK500 V2 closed

This is good now I try to program it on my own with

stk500.exe -cUSB:0000A0015326 -datmega64 -f7FD9

and i get:

Connected to STK500 V2 on port USB:0000A0015326
Device parameters loaded
The value of one or more fuse bytes are not specified.
qmake: *** [writefuse] Error 1

I thought maybe I have a little/big endian probelm so I tryed

stk500.exe -cUSB:0000A0015326 -datmega64 -fD97F
and still got the same response. I check the help in avrstudio and it seems that I did it correct.
Can any one help me with this problem or give some ideas.

Many thanks
Pinkpanter
Holland.

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

Not tried this myself but I sort of assumed that would need to be "... -f 0xD97F" in fact?

Cliff

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

Thx for the comment Cliff but it is not correct.
Got the next reply:

stk500.exe -cUSB:0000A0015326 -datmega64 -f 0xD97F
STK500 command line programmer, v 2.2 Atmel Corp (C) 2004-2005.

-f : Error in parameter
qmake: *** [writefuse] Error 1

I'm looking in other documentation but nothing yet.

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

Looks like this thread probably has the answer:

https://www.avrfreaks.net/index.p...

(IOW I think you probably need to add a -Eff to your command line)

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

Thanks cliff I will try it to morrow at work.
MMmmmmm next time need to search better the answer was already here.

Thx again