AS6 (1882) WinXP. Programs ok, but I can't debug. Any ideas?
"I can't debug" is not a lot to go on?
So if you can program then you can connect to the board. So what message to you get when you try to debug ?
The error message is:
Failed to launch Program
Error PDI enable failed. Debbugger command Activate failed.
I found this thread on the XMEGA forum.
XMEGA forum - PDI does not work on XPLAINED -A1 board & JTAGICE MkII
Can it be this?
Because JTAG TDO and PDI DATA are connected on the PCB for this kit, JTAG must be disabled on the device in order to use PDI. The reason for this is that when JTAG is enabled it will enable a pull-up internally on TDO which interferes with the PDI initialization sequence.
Can it be this?Atmel AVR1923: XMEGA-A3BU Xplained Hardware User Guide wrote:Because JTAG TDO and PDI DATA are connected on the PCB for this kit, JTAG must be disabled on the device in order to use PDI. The reason for this is that when JTAG is enabled it will enable a pull-up internally on TDO which interferes with the PDI initialization sequence.
Also here: http://www.atmel.no/webdoc/xmega...
(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)
The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.
Now I am able to set breakpoints and debug.
I disabled the JTAGEN fuse, using the JTAGICE3 in JTAG mode.
restarted the JTAGICE3 via tools -> device programming.
selected PDI, could read the device and program the board.
But why would you want to use PDI for that board when JTAG works out of the box with the Mk3?
Are you trying to save a few pins for something? Or is it a case of just wanting to try out PDI?
Ampertronics Pty. Ltd.
* Electronic Design * Custom Products * Contract Assembly
I would like to use JTAG, but it isn't working for me. The PDI is working. What is "MK3"?
What I would like is a manual or tutorial. The user guides are limited.
What is "MK3"?
If anything PDI should not work as it needs a link cut at the back of the board which is clearly marked.
Everyone at the Atmel Tech on tour on Thursday used the jtagice3 in JTAG mode.
edit I see your problem "I disabled the JTAGEN fuse, using the JTAGICE3 in JTAG mode." therefore it can't work. But it DID work as it allowed you to disable that fuse.
I started this saying I could program in JTAG ok, just couldn't debug. You see the error message.
I saw the note about cuting the trace for PDI, I didn't cut and it works just fine for degugging and programming.
Tomorrow, I will go back to JTAG and try again.
Solved: Need to set the JTAGICE3 to JTAG in project -> properties (not options as in the AS6 help).
Now I can debug in JTAG.
Thanks John Samperi for insisting that it works in JTAG.
I had looked under Debug properties, but only the ATMEL simulator is listed.
BTW: Only need to cut the PDI/JTAG trace if you want to use the pin with an application. Since it is either JTAG or PDI, no problem (see JTAGICE3 HW User Guide).
Need to set the JTAGICE3 to JTAG in project -> properties
Glad it's all working, now I will need to do some tests on my board in PDI mode since it works without cutting the track.
Results of my tests in a new thread https://www.avrfreaks.net/index.p...
© 2020 Microchip Technology Inc.