Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE
Hello i use TMS320F28388D
And i see two processors CPU1 CPU2
How compiling code only for CPU2?
How to i debug code only for CPU2?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE
Hello i use TMS320F28388D
And i see two processors CPU1 CPU2
How compiling code only for CPU2?
How to i debug code only for CPU2?
Hi Sergey,
The for reaching out with your TMS320F28388 question. Please have a look at: https://dev.ti.com/tirex/explore/node?node=APAgiQ8v.5nhrzj6uFE1rA__gYkahfz__LATEST
If you need further assistance, please do not hesitate to reach back out. If you do have further questions, please let us know what tool chain you are using in terms of IDE, Compiler version, C2000Ware version etc.,
Thanks,
Krishna
Thank you very much for the link. And I saw a project which is a continuation of my question.
https://dev.ti.com/tirex/explore/node?node=AFg9FCV4MQgfgMFG.2vNoQ__gYkahfz__LATEST
project led_ex1_c28x_dual_blinky_cpu1/
I see comment
//! This example demonstrates how to blink a LED using CPU1 and blink another
//! LED using CPU2 (led_ex1_blinky_cpu2.c).
1. How to i debug code only for CPU2?
2. Where is the code led_ex1_blinky_cpu2.c?
Hi Sergey,
It might be easier to load the project first through C2000Ware
C:\ti\c2000\C2000Ware_4_00_00_01\driverlib\f2838x\examples\c28x_dual\led
2. Where is the code led_ex1_blinky_cpu2.c?
The file should be within the directory I listed above.
1. How to i debug code only for CPU2?
When you import the project from within CCS, it will showup as a singular project:

After you import the project you will see both projects for cpu1 and cpu2 loaded:

Build each project separately.
There are many ways to only debug the code on cpu2, one way is the below:
Within CCS go to View-> Target Configurations. Expand the view for projects. Locate your project (either cpu1 or cpu2) and right click on the target configuration and select 'Launch Selected Configuration'

CCS will transition you to the debug perspective. Within this view, right click on CPU1 and CPU2 and select "Connect to Target". Once both CPUs are connected you can load the separate .out files to each core.
As an example, select the core you want to load the program to and then go to the icon I have highlighted below and select "Load Program" through the small down arrow, then go to browse projects and select the .out file for CPU2:


After connecting and loading code into both cores your debug window should look like this:

Run code on each core by clicking on the core and pressing the 'Resume' button. If you click on CPU1 then you should be able to view variables/expressions pertaining to CPU1. Clicking on CPU2 will allow you to switch contexts and debug CPU2 (as shown below).

Best Regards,
Marlyn