JTAG Debugging, multiple XMC (another try to get help)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
GoKl_4594211
Employee
Employee
Claudiofi posted a question on JTAG debugging with multiple XCM in https://www.infineonforums.com/threads/5749-JTAG-Debugging-multiple-XMC?p=16906 in November 2017. Isn't there any Infineon specialist who could help?

The question is about a board using two Infineon XMC4xxx CPUs ( xmc4500, xmc4800). The two CPUs are communicating between them and with external peripherals like RS232, EtherCAT...

The two controllers are in one single JTAG Chain. A J-Link debugger from Segger is used.

Question: Is there a way to choose from DAVE (4.4.2) which one is the target to debug or to download the program to? Claudiofi tried looking everywhere but he couldn't find the option to scan the jtag chain and upload his program on the chosen CPU. Right now he only is able to upload a test program on the second processor in the JTAG chain, the XMC4800. The first one is the XMC4500 and he couldn't debug it no matter what.

It works on others developement tool, like ARM MDK (Keil uVision): you can select the target after scanning the JTAG chain. Unfortunately claudiofi can't use that and is trying to develop his applications on the DAVE CE ide. Can that be done?

Could you help in https://www.infineonforums.com/threads/5749-JTAG-Debugging-multiple-XMC?p=16906 (where you also will find a simple circuit diagram)?
0 Likes
2 Replies
Mike1
Employee
Employee
5 sign-ins First question asked 10 replies posted
If you use a debugger like Ozone from Segger, it will ask you which JLINK to connect to. With the GDB debugger in DAVE you can also debug multiple XMCs at the same time but you have to change the port numbers in the debug config. If you open the debug configuration go to the "Debugger" tab you can change the port settings so that they are unique for each MCU. Then you can debug multiple MCUs at the same time with DAVE.
0 Likes
User14172
Level 2
Level 2
First solution authored First like received
Mike wrote:
If you use a debugger like Ozone from Segger, it will ask you which JLINK to connect to. With the GDB debugger in DAVE you can also debug multiple XMCs at the same time but you have to change the port numbers in the debug config. If you open the debug configuration go to the "Debugger" tab you can change the port settings so that they are unique for each MCU. Then you can debug multiple MCUs at the same time with DAVE.


Yes but in my case I have both CPUs in one single JTAG chain, it seems to not be possible to target one of them, bypassing the other.
I have ONE JLINK that goes into my JTAG port on the board, in which there are one XMC4500 and one 4800. The first one in the chain (4500) seems to be not debuggable neither targettable with a new project, the 4800 is the only one that si working.

We used this configuration because we adopted it years ago for another project, based on Analog devices CPUs, using VISUALDSP++, and the IDE gives you the option to scan the JTAG chain and choose the target. We moved on now with Infineon CPUs since they have EtherCAT implemented and the performances are outstanding, and I hoped I could use DAVE to develop the software.
0 Likes