Question:
How to debug processors connected in the JTAG chain via CCES?
Answer:
Proceed with the below steps to debug the processors connected on the JTAG chain.
Before Debugging, set the Hardware setup ready.
For Evaluation boards, please refer through the corresponding board schematics from analog.com and refer the "MULTI PROCESSOR JTAG SETTINGS" section to make the switch settings for JTAG chain.
Also, connect the Link Ports between the boards to make a chain.
Now, Follow the below steps one by one in CCES.
1. Import and build the project in CCES.
2. Select Project -> Right click -> Debug As -> Debug configurations.
Debug configurations window appears.
3. Select "New Launch Configuration" by clicking on icon.
Session Wizard window appears.
4. Select the Processor Family and Processor Type. Click 'Next'.
5. Select "Configurator" in connection type window.
A Target configurator window appears.
6. Click on 'New'.
The Device Properties dialog box appears.
7. In Name, enter a unique name for the device.
8. In Type, select the type of emulator from the list.
Steps for same processors connected in the JTAG chain-
• On Devices screen, Select the no.of Devices in the same JTAG chain.
If two processors, have to create 2 Device in the list. Refer Screenshot below.
• Click 'OK' to exit from target configurator screen.
Created platform will be listed in the 'Select Platform' window. Refer Screenshot below.
• Select the platform and click "Finish".
• Now, Program(s) has to be select for the connected devices(Device 0,1,...). Refer Screenshot below.
• Clik 'Apply' and 'Debug'.
• Debug View will looks like below.
Steps for different processors connected in the JTAG chain-
• After step 8 above, On Devices screen, Select the no.of Devices in the same JTAG chain.
• If two devices, Create two platforms. One where the 1st chip is unknown(BYPASS) and the 2nd is the Processor. Then create a different platform that is the opposite and the 1st chip is the processor and the 2nd an unknown(BYPASS). Refer Screenshot
• Click 'OK' to exit from target configurator screen.
Then the two platforms will be shown in the 'Select Platform' window for the corresponding processors.
• Now Select the processor in session wizard which you want to debug from a chain > Next > Select 'Emulator' > Select the one of the platform that you created and click Finish. Refer Screenshot
• Now select the program to load to processor and 'Debug'.