You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Target is an ATmega32U4 (Arduino Micro) over JTAG, with an Atmel-ICE. I don't know whether this also occurs with JTAGICE3.
avarice -d -C -4 -B 2M localhost:6000 exits with an error upon first contact by GDB, but avarice -d -4 -B 2M localhost:6000 seems to work.
I've traced this down to a failure to use CMD_AVR8_ATTACH (CMD3_START_DEBUG in jtag3.h) in capture mode. I have preliminary patches to fix this. The EDBG protocol reference can be quite helpful, even if it does seem inaccurate or incomplete in places.
jtag3::initJtagOnChipDebugging does use that attach command, but only on DebugWire or for XMEGA. Oddly enough, it turns out to be unnecessary there, because leaving progmode during a debug session implicitly does a reset and attach (if OCD is enabled). (On DebugWire, the attempt to enable OCD bypasses progmode, because DebugWire doesn't do that, but DebugWire implicitly attaches on activation of the physical interface, which I've determined experimentally, but isn't documented.)
Target is an ATmega32U4 (Arduino Micro) over JTAG, with an Atmel-ICE. I don't know whether this also occurs with JTAGICE3.
avarice -d -C -4 -B 2M localhost:6000
exits with an error upon first contact by GDB, butavarice -d -4 -B 2M localhost:6000
seems to work.I've traced this down to a failure to use
CMD_AVR8_ATTACH
(CMD3_START_DEBUG
injtag3.h
) in capture mode. I have preliminary patches to fix this. The EDBG protocol reference can be quite helpful, even if it does seem inaccurate or incomplete in places.jtag3::initJtagOnChipDebugging
does use that attach command, but only on DebugWire or for XMEGA. Oddly enough, it turns out to be unnecessary there, because leaving progmode during a debug session implicitly does a reset and attach (if OCD is enabled). (On DebugWire, the attempt to enable OCD bypasses progmode, because DebugWire doesn't do that, but DebugWire implicitly attaches on activation of the physical interface, which I've determined experimentally, but isn't documented.)0x32
isAVR8_FAILURE_ILLEGAL_STATE
, which avarice handles by attempting a stop command, which also fails:0x23
isAVR8_FAILURE_NOT_ATTACHED
.Full log:
jtag-c-32u4.txt
The text was updated successfully, but these errors were encountered: