avrdude problem!

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

i have burned the code in to atmega16 using usbasp & cmd on windows.but when i switched on to ubuntu 11.10 and in which i installed avrdude 5.0 i got the output as this:

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9403

avrdude: safemode: Fuses OK

avrdude done. Thank you.

i did'nt understand this.
wat does this tell abt the process?

*** ***

*********************

the more is see,less i know

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

Quote:

avrdude 5.0

You don't really mean 5.0 do you? avrdude is currently at 5.11 which is 11 versions beyond that.

Anyway that output seems to show that everything is working very well indeed. It's managed to read the correct 3 byte signature for a mega16 from within the chip - that proves that ISP is working well.

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

From an ATmega16 data sheet.

Quote:

For the ATmega16 the signature bytes are:
1. $000: $1E (indicates manufactured by Atmel)
2. $001: $94 (indicates 16KB Flash memory)
3. $002: $03 (indicates ATmega16 device when $001 is $94)

All AVRs will have 1E
All AVRs will have 9x where x is the memory size
All AVRs tend to have 0x where x is a small number

You always check the signature. It must always be 100% correct. Never use the -F switch.

If you like GUIs like Studio4, you can go seriously wrong. Hey-ho, is that not what GUIs are supposed to do?

David.

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

does that means code is burned in to target!
i just gave sudo avrdude -c usbasp -p m16

*** ***

*********************

the more is see,less i know

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

I'm not really qualified to post on this as I have my own AVRDUDE problems! I think you need the -U parameter. Something like -U flash:w:prog.hex. That tells it to write the program prog.hex (in the same dir) to flash I believe. Entering just "avrdude" will bring up a list of parameters.

Last Edited: Thu. Jan 5, 2012 - 01:57 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

it gets tweaky now..
sudo avrdude -c usbasp -p m16 U- flash:w:prog.hex.
now i gave this command and got:

sudo avrdude -c usbasp -p m16 U- flash:w:prog.hex.

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x000102
avrdude: Expected signature for ATMEGA16 is 1E 94 03
Double check chip, or use -F to override this check.

avrdude done. Thank you.

*** ***

*********************

the more is see,less i know

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

What was the real command you used?

It's -U not U- and there should be no . at the end

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

It is very important to proof-read your posts. You can always edit your own posts and fix typos.

We are all guilty of typos. The odd spelling mistake is fine. When you are quoting a 'command' you must be 100% accurate.

sudo avrdude -c usbasp -p m16 -U flash:w:prog.hex -B5

Adding the -B5 means you are using 5us SCK period ( <=200kHz ISP frequency). This should be fine for a 1MHz AVR.

David.