Sun 22 Aug 2010 09:51:42 PM UTC, original submission:
I'm using avrdude 5.10 with an arduino diecimila connected to an attiny45 over spi as detailed at http://www.uchobby.com/index.php/2007/11/04/arduino-avr-in-system-programmer-isp/
The arduino is running avr-isp v3 from http://code.google.com/p/mega-isp/
I have a small file 174 byte hello world program that I'm testing with. If I force avrdude to program the t45 as a t25, it programs, verifys and runs fine. If I specify t45, it fails to verify at 0x00.
This fails -
avrdude -P com4 -p t45 -c avrisp -U flash:w:hello_world\default\hello_world.hex:i
This verifys and runs
avrdude -P com4 -p t25 -c avrisp -U flash:w:hello_world\default\hello_world.hex:i -F
I can read the code back from both methods and see that there is corruption in the t45 version.
hello_world.hex programmed as 45 read as 45
:20000000 000015C014C013C012C011C010C00FC00EC00DC00CC00BC00AC009C008C0112460
:20002000 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8FEF87BB29E130E074E068E050E140E207
:20004000 18B280E197E2F9013197F1F70197D9F778BB80E197E2F9013197F1F70197D9F7CB
:20006000 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF58BB80E197E2F9013197F1F70197D9F791
:20008000 48BB80E197E2F9013197F1F70197D9F7D7CF80E197E229E130E0F9013197F1F72D
:00000001 FF
hello_world.hex programmed as 25 read as 45
:20000000 0EC015C014C013C012C011C010C00FC00EC00DC00CC00BC00AC009C008C0112492
:20002000 1FBECFE5D1E0DEBFCDBF02D03EC0E8CF8FEF87BB29E130E074E068E050E140E205
:20004000 18BA80E197E2F9013197F1F70197D9F778BB80E197E2F9013197F1F70197D9F7C3
:20006000 68BB80E197E2F9013197F1F70197D9F758BB80E197E2F9013197F1F70197D9F772
:20008000 48BB80E197E2F9013197F1F70197D9F7D7CF80E197E229E130E0F9013197F1F72D
:0E00A000 0197D9F781E090E00895F894FFCF22
:00000001 FF
First byte wrong, lots of FFs where there shouldn't be. I have been through avrdude.conf with a fine toothed comb and can't find the offending bit. It's the version that comes with WinAVR-20100110-install.exe
Any help would be much appreciated - I've been stuck here for days!
Thanks
Mat
|