Go Down

Topic: Problem flashing to 009. (Read 516 times) previous topic - next topic

imagitronics

Sep 10, 2007, 05:56 pm Last Edit: Sep 11, 2007, 03:30 am by imagitronics Reason: 1
[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: [Select]

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: [Select]

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

imagitronics

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

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy