I'm trying to update my TinyG Firmware and bought the AVR MKII programmer to flash the chip. I've done everything I can think of to get it working but have thus far failed.
I've installed avrdude on my Linux laptop running Ubuntu and believe I have all dependencies working. I have nothing but the MKII plugged into my machine. The TinyG board is receiving ~24VDC.
When I run a typical avrdude command, I get this error:
user@user-ThinkPad-T60:~/Desktop/tinyg/firmware/tinyg$ sudo avrdude -c avrispmkII -p x192a3
avrdude: stk500v2_command(): error in CMD_XPROG_SETMODE: Unknown
avrdude: stk600_xprog_program_enable(): CMD_XPROG_SETMODE(XPRG_MODE_PDI) failed
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: stk500v2_command(): error in CMD_XPROG: Unknown
avrdude: stk600_xprog_program_disable(): XPRG_CMD_LEAVE_PROGMODE failed
avrdude done. Thank you.
Any suggestions of where to start? The end-goal is to flash the latest tinyg.hex file and the xboot.h file, which I don't have on my board (a rare 'green' v7).
I have not programmed via Ubuntu for a LONG time. I did write this up a while back and its still on our old wiki. If you want to take a shot at this I think that would be a good idea:
You can skip over the md5sum bit. Also change your chip to the x193a3 vs the 265 which is listed on that page. Let me know if that gets you going. I do not have access to Ubuntu at the moment. If not I will try to get a box up and going and see.
avrdude: Device signature = 0x1e9744
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "tinyg.hex"
avrdude: input file tinyg.hex auto detected as Intel Hex
avrdude: writing flash (97478 bytes):
avrdude: stk500v2_command(): error in CMD_XPROG_SETMODE: Unknown
avrdude: stk600_xprog_program_enable(): CMD_XPROG_SETMODE(XPRG_MODE_PDI) failed
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: stk500v2_command(): error in CMD_XPROG: Unknown
avrdude: stk600_xprog_program_disable(): XPRG_CMD_LEAVE_PROGMODE failed
I suspect that you might have an too old version of avrdude? Are you using the one that comes with the Arduino IDE? Or just "apt-get" style? If so try the Arduino one.
Riley
This topic is from the original forum (September 2013). Your reply starts a new discussion linked to it.