Hello,
I started a new thread, because my problem is a different one than before. (I gave up on the AVR-ISP arduino programmer.)
Yesterday I built a parallel programmer cable and wired it up to a USB-Arduino and flashed it with the Atmega8 bootloader. Everything worked perfectly and I was able upload programs with the arduino 0007er afterwards.
Then I tried the same for the atmega168 on the mini. I wired up everything (using the atmega168 datasheet) and flashed the 168er bootloader into the chip (see below) - and as you can see below I got several error-messages. (argh)
So I tried to burn again, and I got the same errors at the same addresses.
The good news is that the old program is gone. The bad news is that I cannot upload anything to the board using 0007, because I get the message that the programmer is not responding.
Now my question: Shall I throw the chip away? Are parts of the flash-memory broken?
Thank you for helping a newbie.
lg, Mr.M
C:\Documents and Settings\mahrm\Desktop\arduino-0007\bootloader168>burn
C:\Documents and Settings\mahrm\Desktop\arduino-0007\bootloader168>REM unlock bo
otloader segment
C:\Documents and Settings\mahrm\Desktop\arduino-0007\bootloader168>cd ..
C:\Documents and Settings\mahrm\Desktop\arduino-0007>tools\avr\bin\uisp -dprog=d
apa -dlpt=0x378 -dpart=ATmega168 --wr_lock=0x3F
Atmel AVR ATmega168 is found.
Writing lock bits ...
Reinitializing device
Atmel AVR ATmega168 is found.
Warning: lock bits write=0x3F read=0xCF
Lock Bits set to 0x3f
C:\Documents and Settings\mahrm\Desktop\arduino-0007>REM set fuses
C:\Documents and Settings\mahrm\Desktop\arduino-0007>REM bootloader size of 512
words; from 0xE00-0xFFF
C:\Documents and Settings\mahrm\Desktop\arduino-0007>REM clock speed of 16 MHz,
external quartz
C:\Documents and Settings\mahrm\Desktop\arduino-0007>tools\avr\bin\uisp -dprog=d
apa -dlpt=0x378 -dpart=ATmega168 --wr_fuse_h=0xDF --wr_fuse_l=0xC7 --wr_fuse_e=0
xF8
Atmel AVR ATmega168 is found.
Fuse Low Byte set to 0xc7
Fuse High Byte set to 0xdf
Fuse Extended Byte set to 0xf8
C:\Documents and Settings\mahrm\Desktop\arduino-0007>REM upload bootloader
C:\Documents and Settings\mahrm\Desktop\arduino-0007>tools\avr\bin\uisp -dprog=d
apa -dlpt=0x378 -dpart=ATmega168 --upload --verify if=bootloader168\ATMegaBOOT_1
68.hex -v
AVR Direct Parallel Access succeeded after 0 retries.
Atmel AVR ATmega168 is found.
Uploading: flash
##################################################
(total 1580 bytes transferred in 0.92 s (1716 bytes/s)
Polling: count = 13, min/avg/max = 0.00/3.69/16.00 ms
Verifying: flash
#####flash error at address 0x3880: file=0x05, mem=0x00
flash error at address 0x3881: file=0x90, mem=0x80
####flash error at address 0x3900: file=0xc0, mem=0x80
flash error at address 0x3902: file=0x87, mem=0x80
####flash error at address 0x3980: file=0xa4, mem=0x04
flash error at address 0x3981: file=0x1c, mem=0x14
####flash error at address 0x3a04: file=0x82, mem=0x80
####flash error at address 0x3a80: file=0x0e, mem=0x0c
flash error at address 0x3a81: file=0x94, mem=0x84
flash error at address 0x3a84: file=0x86, mem=0x84
####flash error at address 0x3b01: file=0x93, mem=0x13
####flash error at address 0x3b80: file=0x1f, mem=0x0f
####flash error at address 0x3c00: file=0xf9, mem=0x19
flash error at address 0x3c01: file=0x99, mem=0x80
flash error at address 0x3c04: file=0xf2, mem=0x12
####flash error at address 0x3c80: file=0x81, mem=0x01
####flash error at address 0x3d04: file=0xe8, mem=0x00
####flash error at address 0x3d80: file=0x0e, mem=0x04
flash error at address 0x3d81: file=0x94, mem=0x90
####flash error at address 0x3e00: file=0x3c, mem=0x08
flash error at address 0x3e01: file=0xf0, mem=0x30
(total 1580 bytes transferred in 0.86 s (1837 bytes/s)
C:\Documents and Settings\mahrm\Desktop\arduino-0007>REM lock bootloader segment
C:\Documents and Settings\mahrm\Desktop\arduino-0007>tools\avr\bin\uisp -dprog=d
apa -dlpt=0x378 -dpart=ATmega168 --wr_lock=0xCF
Atmel AVR ATmega168 is found.
Writing lock bits ...
Reinitializing device
Atmel AVR ATmega168 is found.
Lock Bits set to 0xcf
C:\Documents and Settings\mahrm\Desktop\arduino-0007>cd bootloader168