Pages: [1]   Go Down
Author Topic: Problem flashing to 009.  (Read 408 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 53
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

[EDIT]
I finally stumbled across this post, which I believe addresses my problem.
[/EDIT]


Hey all. I did a forum and web search before posting here. I'm trying to upgrade the firmware on my NG board so that I don't have to push the button every time I load a sketch. I built the DAPA programmer listed on the main site, and followed directions in the forum thread linked from there (for using avrdude) that didn't work, so I tried to use the burnpara.bat file... unfortunately, I don't know exactly what all the parameters should be, and now I've bricked my arduino. Any help would be appreciated:

What should the lock bit etc be? Everywhere I look I only find examples for the ATMega8.
Code:
tools\avr\bin\uisp -dpart=ATmega168 -dprog=dapa -dlpt=0x378 --wr_lock=0xFF
tools\avr\bin\uisp -dpart=ATmega168 -dprog=dapa -dlpt=0x378 --wr_fuse_l=0xdf --wr_fuse_h=0xca
tools\avr\bin\uisp -dpart=ATmega168 -dprog=dapa -dlpt=0x378 --erase --upload --verify if=bootloader\ATMegaBOOT.hex
tools\avr\bin\uisp -dpart=ATmega168 -dprog=dapa -dlpt=0x378 --wr_lock=0xCF

Code:
C:\Documents and Settings\Administrator\Desktop\arduino-0009\bootloader>burnpara
.bat

C:\Documents and Settings\Administrator\Desktop\arduino-0009\bootloader>REM Befo
re running this for the first time, you'll need to install giveio.

C:\Documents and Settings\Administrator\Desktop\arduino-0009\bootloader>REM Unzi
p drivers\giveio.zip, then run ginstall.bat.

C:\Documents and Settings\Administrator\Desktop\arduino-0009\bootloader>cd ..

C:\Documents and Settings\Administrator\Desktop\arduino-0009>tools\avr\bin\uisp
-dpart=ATmega168 -dprog=dapa -dlpt=0x378 --wr_lock=0xFF
Atmel AVR ATmega168 is found.
Writing lock bits ...
Reinitializing device
Atmel AVR ATmega168 is found.

Lock Bits set to 0xff

C:\Documents and Settings\Administrator\Desktop\arduino-0009>tools\avr\bin\uisp
-dpart=ATmega168 -dprog=dapa -dlpt=0x378 --wr_fuse_l=0xdf --wr_fuse_h=0xca
Atmel AVR ATmega168 is found.

Fuse Low Byte set to 0xdf

Fuse High Byte set to 0xca

C:\Documents and Settings\Administrator\Desktop\arduino-0009>tools\avr\bin\uisp
-dpart=ATmega168 -dprog=dapa -dlpt=0x378 --erase --upload --verify if=bootloader
\ATMegaBOOT.hex
Atmel AVR ATmega168 is found.
Erasing device ...
Reinitializing device
Atmel AVR ATmega168 is found.
Uploading: flash
Verifying: flash
flash error at address 0x1e80: file=0xc6, mem=0xff
flash error at address 0x1e81: file=0xe6, mem=0xff
flash error at address 0x1e82: file=0xd0, mem=0xff

C:\Documents and Settings\Administrator\Desktop\arduino-0009>tools\avr\bin\uisp
-dpart=ATmega168 -dprog=dapa -dlpt=0x378 --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\Administrator\Desktop\arduino-0009>cd bootloader

C:\Documents and Settings\Administrator\Desktop\arduino-0009\bootloader>

Thanks,
Tim
« Last Edit: September 10, 2007, 08:30:39 pm by imagitronics » Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 53
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm pleased to announce that I finally got my board properly flashed to diecimila, installed the 104 capacitor and everything is working wonderfully.

In the interest of full disclosure, I'd like to admit why I was having problems. I hadn't noticed there was a bootloader folder, and a bootloader168 folder. I was trying to burn the m8 bootloader onto my m168! doh!

It happens I suppose. The good news is that it works, and it's a beautiful thing.

Thanks,
Tim
Logged

Pages: [1]   Go Up
Jump to: