Thu 07 Jan 2010 06:57:43 PM UTC, original submission:
Applies to the current svn version (889).
Avrdude displays an error message when exiting:
bad response to GO command: RSP_ILLEGAL_EMULATOR_MODE
After looking at the source it looks to me like avrdude thinks it is in JTAG mode and issues a GO command when shutting down to avoid blocking the MCU.
Here an example run:
$ avrdude -p ATTINY861 -c dragon_isp -P usb
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.15s
avrdude: Device signature = 0x1e930d
avrdude: safemode: Fuses OK
avrdude: jtagmkII_close(): bad response to GO command: RSP_ILLEGAL_EMULATOR_MODE
avrdude done. Thank you.
Here the same run with high verbosity (-vvv):
$ avrdude -p ATTINY861 -c dragon_isp -P usb -vvv
...
avrdude: jtagmkII_close()
avrdude: jtagmkII_close(): Sending GO command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: jtagmkII_recv():
avrdude: jtagmkII_recv(): CRC OK
avrdude: jtagmkII_recv(): Got message seqno 0 (command_sequence == 0)
Illegal emulator mode
avrdude: jtagmkII_close(): bad response to GO command: RSP_ILLEGAL_EMULATOR_MODE
avrdude: jtagmkII_close(): Sending sign-off command:
avrdude: jtagmkII_send(): sending 1 bytes
avrdude: jtagmkII_recv():
avrdude: jtagmkII_recv(): CRC OK
avrdude: jtagmkII_recv(): Got message seqno 1 (command_sequence == 1)
|