Other Parts Discussed in Thread: TMS320F28379D
Hi,
I am currently working on migrating from the Eclipse version of CCS to the Theia version.
The target is a TMS320F28379D. There are two separate CCS projects, one is for CPU1 and one is for CPU2.
I am able to build both projects and flash the target, but I have been mostly unsuccessful with debugging. In the Eclipse version, a .launch file can be imported by choosing File > Import and then Run/Debug > Launch Configurations. The launch configurations can be used by selecting the arrow next to the debug icon and then Debug Configurations. This is the way that we were starting a debugging session with CCS Eclipse.
However, I am unable to find this option or a comparable option in the Theia version (neither importing of the launch configurations nor the specification of debug configurations). I am able to set some of the same settings using the project properties (right click on a project and select Properties at the bottom and going to the Debug section), but not all of the settings are there, and it is project specific instead of across both projects.
Debugging either of the two projects normally (Run > Debug Project) does not work. At the start of main(), there are multiple synchronization steps between the two cores. When debugging normally, the core gets stuck at the synchronization step (the other core could be held in reset or may not have been reset at all?). Some psuedo code of this is below.
void IPC_syncCores(void) { IPC_sendSyncMessageToOtherCore(); while (otherCoreHasNotResponded); } int main() { // Do some work IPC_syncCores(); // Do some more work IPC_syncCores(); // Do some more work IPC_syncCores(); for (;;) { // Do other work here } }
I have had some success when launching a Project-less Debug Session from the Target Configuration File. This process involves connecting to CPU1 and CPU2, loading each CPU with their respective program and symbols, and then starting them both. This sometimes works but not always and is an annoying process because Restarting the CPUs rarely works, so often it is necessary to reload the programs.
How can Eclipse's launch configurations be migrated to the Theia version of CCS?
Thank you for the help!