Part Number: TMS320F28388D
Hi,
I want to debug a can example program
The code has 2 projects : one for the c28 core and one for the CM core
How do I run them both ? is there a way to "bundle" one into 1 debug configuration ?
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
Hi,
I want to debug a can example program
The code has 2 projects : one for the c28 core and one for the CM core
How do I run them both ? is there a way to "bundle" one into 1 debug configuration ?
Hi ,
You can have a single target configuration file (ccxml) which you can be used to connect to both C28 and CM cores. You can then run the example on either of the cores . Don't think you can run the example on both cores at the same time .
CAN is a shared peripheral and can be allocated to either of the cores. If CAN is allocated to CM, C28x CPU1/2 accesses to CAN will be ignored and interrupts from CAN will not be generated to C28x CPU1/2.
Best Regards
Siddharth
I do not work to use CAN from both cores :the 28 core does the configuration, and than enters a while(1) loop.
and the CM does the CAN code.
I am doing the below :
1) load and run the c28 code (runs from flash) : clear flash (cpu1) -> load program -> run
2) load and run the CM core (from flash) : clear flash(cm) -> load program -> run
does the above means both cores are running or does executing (2) stops the c28 core ?
In order to better understand the issue , I have decided to try out a TI demo.
I found a demo called led_ex1_c28_cm_blinky_cm.
The example consists of 2 projects. one for c28 and one for cm. each blink a led.
what are the stages to run this demo ?
how to I single step / add brake point the CM (I can do it for the c28 core, but could not do the same in the cm core).
I was able to load the CM code to RAM. I than loaded and run the c28 code , that booted the CM code and saw leds are blinking as expected. How do I debug the CM core ? add break point etc ?

at his point , I can single-step and break point the c28 core. how to I connect to the cm core?
Hi,
You will have to connect to the "Cortex_M4_0" core. You will have to select it in the debugger view and then connect to it. After connecting , you will be able to load the code and run.
Best Regards
Siddharth
This indicates that you have connected to M4 core. Now you have to load the CM side code to M4 and then run.
Best Regards
Siddharth