Pages: [1]   Go Down
Author Topic: Not able to burn bootloader on atmega8  (Read 1137 times)
0 Members and 1 Guest are viewing this topic.
Ahmedabad, India
Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a atmega8-16PU. I made a arduino compatible on breadboard (itp.nyu.edu/physcomp/Tutorials/ArduinoBreadboard). I can program it using AVRDude but I am not able to burn the bootloader on it.

I am using the Arduino NG or Older w/ ATMega8 option as the board.And using the parallel programmer. It shows the following error

avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
avrdude: Yikes!  Invalid device signature.
avrdude: Expected signature for ATMEGA8 is 1E 93 07
avrdude: AVR device not responding
 ***failed;  
avrdude: verification error, first mismatch at byte 0x0000
         0xca != 0xff
avrdude: verification error; content mismatch

The signatures should match as I can program it using the avrdude (tested by burning a C program on it).

rick@Sophiya:~/Desktop/led test$ sudo make program
avrdude -p atmega8 -P /dev/parport0            -c pony-stk200       -E reset  -U flash:w:blink_led.hex

avrdude: AVR device initialized and ready to accept instructions

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

avrdude: Device signature = 0x1e9307
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "blink_led.hex"
avrdude: input file blink_led.hex auto detected as Intel Hex
avrdude: writing flash (108 bytes):

this shows that the board is working.

Please help me with this problem.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 15
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

did u burn the fuses for xtal and lock/unlock ?
what programmer do you have?
Logged

Ahmedabad, India
Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't know what the first one means (do you mean the edits in the preferences file?) but i just added the ICSP parallel ports programmer like this http://arduino.cc/en/Hacking/ParallelProgrammer to the breadboard

(actually I had one left around which came with an atmega32)
« Last Edit: April 04, 2010, 04:51:35 am by rick2047 » Logged

Ahmedabad, India
Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I just checked my makefile which I use to program and it uses the pony-stk200 protocol with avrdude.

Can change stk500 to pony-stk200?
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 207
Posts: 12904
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


You may have to add your programmer to the programmers.txt file.

In boards.txt, use the "Arduino NG or Older w/ ATMega8" entry to create a new one that uses your programmer.

I think instructions are here...
http://www.arduino.cc/en/Hacking/Programmer


Be sure to modify the files when the Arduino IDE is NOT running.
Logged

Pages: [1]   Go Up
Jump to: