Thanks to immeasurable help from Erik W, I've got my pdi programmer pretty much working to program an xmega256a3. I use avrdude to communicate over serial with my software (Erik's actually, with my modifications ) to program the xmega over pdi.

I am, however, getting an odd error when I run avrdude. It showed up on a much longer file Intel hex file, but trimming it to the related lines:

:100FF00064783D25692C206368616E3D25692C204D
:101000006C6F636B3D25693E000D0A3C6572727220

avrdude.exe: verifying ...
avrdude.exe: 4112 bytes of flash verified
avrdude.exe: reading input file "H:\msys\1.0\home\lrc\avrdude\avrdude-5.11\avrdude-5.11\test1010_a.hex" avrdude.exe: input file H:\msys\1.0\home\lrc\avrdude\avrdude-5.11\avrdude-5.11\test1010_a.hex auto detected as Intel Hex avrdude.exe: ERROR: address 0x1010 out of range at line 2 of H:\msys\1.0\home\lrc\avrdude\avrdude-5.11\avrdude-5.11\test1010_a.hex avrdude.exe: read from file 'H:\msys\1.0\home\lrc\avrdude\avrdude-5.11\avrdude-5.11\test1010_a.hex' failed

But, looking at what I think is the relevant output of avrdude, I see what looks to me like the programmer saying that it worked: ###avrdude.exe: Send: . [1b] 6 [36] . [00] . [09] . [0e] P [50] . [05] . [01] . [00] . [80] . [10] . [00] . [01] . [00] . [ef]
avrdude.exe: Recv: . [1b]
avrdude.exe: Recv: 6 [36]
avrdude.exe: Recv: . [01]
avrdude.exe: Recv: . [03]
avrdude.exe: Recv: . [0e]
avrdude.exe: Recv: P [50]
avrdude.exe: Recv: . [05]
avrdude.exe: Recv: . [00]
avrdude.exe: Recv: l [6c]
avrdude.exe: Recv: o [6f]
avrdude.exe: Recv: c [63]
avrdude.exe: Recv: k [6b]
avrdude.exe: Recv: = [3d]
avrdude.exe: Recv: % [25]
avrdude.exe: Recv: i [69]
avrdude.exe: Recv: > [3e]
avrdude.exe: Recv: . [00]
avrdude.exe: Recv: . [0d]
avrdude.exe: Recv: . [0a]
avrdude.exe: Recv: < [3c]
avrdude.exe: Recv: e [65]
avrdude.exe: Recv: r [72]
avrdude.exe: Recv: r [72]
avrdude.exe: Recv: r [72]
avrdude.exe: Recv: . [ff]
avrdude.exe: Recv: . [ff]
avrdude.exe: Recv: . [ff]

I'm calling avrdude with the following batch file:

"H:\msys\1.0\home\lrc\avrdude\avrdude-5.11\avrdude-5.11\avrdude.exe" -vvvv -p x256a3 -c avrisp2 -b 115200 -P com1 -U flash:w:"H:\msys\1.0\home\lrc\avrdude\avrdude-5.11\avrdude-5.11\%1":a -U eeprom:w:"H:\msys\1.0\home\lrc\avrdude\avrdude-5.11\avrdude-5.11\%1":a

I did a bit of google-fu on the error message and found what looked like someone discussing a bug with avrdude. My expectation is that it's just pilot error, and I just passed avrdude the wrong parameters.

I came up with my first guess at the parameters using avrdude-gui and then modified them to get me something which seems to work. I hope that this is just another of they myriad stupid mistakes I've made on this project and someone with more experience wrangling avrdude will be able to see it right off the bat.

Thanks.
   Larry




--
Larry Colen [email protected] (from dos4est)

_______________________________________________
avrdude-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev

Reply via email to