JTAGICE3 and Arduino Uno problem [solved]

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Am trying to get a new JTAGICE3 working with an Arduino board via the 6-pin SPI connector. The JTAGICE3 pinouts for that connector match up to pins on the Arduino Uno schematic. Looks like it should work for both debugWIRE and ISP programming. But debug sessions fail with this error:

Failed to launch session with debugWIRE. This could be caused by reset line circuitry or disabled debugWIRE interface. Make sure the reset line is free before continuing. Do you want to use the SPI to enable the DWEN fuse?

So I cut the Uno's RESET-EN trace, verified that the reset line was free (10k pullup to 5v), and then said "Yes" to enabling DWEN after which debug sessions still fail. When I used AS5's AVR Programming tool command with the JTAGICE3, it cannot read fuses, memory, or lock bits from the chip. Reading attempts give this error:

Programming session setup failed: TCF command: Device:startSession failed: Code:1 ,Service: ,Message from peer:Failed to enter programming mode. ispEnterProgMode: Error status received: Got 0xc0, expected 0x00

The Uno won't bootload now but I'm pretty sure that's because the RESET-EN trace is cut (which I can jumper again when needed).

Anyone with Arduino Uno and JTAGICE3 experience?

Thanks (and yes I've read thru the 328p and JTAGICE3 manuals).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Update: after reading clawson's excellent post on recovering from a locked out AVR, I realized ISP isn't supposed to work in debugWIRE mode. Also, after restarting AS5 for a 3rd time and power cycling the Arduino Uno, debug works at least for run and pause. So now I can move forward and dig into the debugger.