JTAGICE3 will program, but not debug

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

Hi,

I am trying to debug a program on an XMEGA-A3BU Xplained board using the AVR JTAGICE3 programmer/debugger.  I can program the device fine, but when I try to Start Debugging and Break, I get a pop-up window "Failed to launch program. Error: Invalid daisy chain configuration.  Debugger command Activate physical failed. 

 

Tool Information:

JTAGICE3
Debug host        127.0.0.1
Debug port        58518
Serial number     J30200031068
Connection        com.atmel.avrdbg.connection.cmsis-dap
Features          1
Firmware Version  3.37
Hardware Version  2

 

Device Information:

Detected device
Device names      ATxmega256A3B, ATxmega256A3BU
Device signature  0x1E9843
JTAG id           0x6984303F
Revision          G

Datasheet information:
                              ATxmega256A3BU-AU      ATxmega256A3BU-MH
CPU                                        AVR8_XMEGA
Flash size                         264 KB (256 KB+8 KB BOOT)
EEPROM size                                   4 KB
SRAM size                                    16 KB
VCC range                        1.6 - 3.6 V            1.6 - 3.6 V
Maximum operating speed            32 MHz                 32 MHz
 

Fuses:

JTAGUSERID = 0x00
WDWP = 8CLK
WDP = 8CLK
BOOTRST = BOOTLDR
TOSCSEL = XTAL
BODPD = DISABLED
RSTDISBL = [ ]
SUT = 0MS
WDLOCK = [ ]
JTAGEN = [X]
BODACT = CONTINUOUS
EESAVE = [ ]
BODLVL = 1V6

FUSEBYTE0 = 0x00 (valid)
FUSEBYTE1 = 0x00 (valid)
FUSEBYTE2 = 0xBF (valid)
FUSEBYTE4 = 0xFE (valid)
FUSEBYTE5 = 0xEF (valid)
 

Lock Bits:

BLBB = NOLOCK
BLBA = NOLOCK
BLBAT = NOLOCK
LB = NOLOCK

LOCKBITS = 0xFF (valid)
 

Can't figure this one out.  In addition, in the Tools, Device Programming window, the Interface settings has a box "JTAG Daisy chain settings" I had to check the box Target device is part of a JTAG daisy chain, and the Detect Devices Now sowed a description of "Device/TAP with ID 0x6984303F" with an IR Length of 4. I assume the ID represents the XMEGA-A3BU board, but what is this IR Length of 4?

 

Any assistance with getting the debug working would be greatly appreciated.

 

Fred

 

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

Just turn off daisy chaining (Select 'Target device is not part of a JTAG daisy chain'); https://www.microchip.com/webdoc...

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

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

Thanks for the tip.  However, I am still not able to debug my program. "Faied to launch program. Error: Invaled daisy chain configuration.  Debugger command Activate physical failed.

 

Thanks for looking,

Fred

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

When I tried the "Attach to Target" button, I get the same error window as in the above posting. The JTAGICE3 does recognize the device, and I am able to program the Xplained board with the JTAGICE3, but I am not able to attach to the device or debug the program running on the device. Thanks, Fred

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

Hi,

I am revisiting this project after a few years.  I used to be able to program and debug this project (assembler) with the JTAGICE3, now debugging is not working. I did upgrade the Atmel Studio 7 to the latest download a few days ago, but this did not address the inability to debug. I have ordered the Atmel-ICE Debugger and Programmer Full Kit , thinking that somehow the JTAGICE3 is broken. The Atmel-ICE will arrive tomorrow. I should have an update tomorrow evening on whether this will allow debugging.

 

Fred

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

Hi,

The Atmel ICE arrived last night.  Happy to report the ICE is able to debug the program successfully. 

 

Regards,

Fred