i saw to have both examples run the controller.c and peripheral.c to see the external loopback happen but im not able to debug both programs at the same time. i'd like to know if there is a way to do it, or am i having the concept wrong?
i saw to have both examples run the controller.c and peripheral.c to see the external loopback happen but im not able to debug both programs at the same time. i'd like to know if there is a way to do it, or am i having the concept wrong?
Hi,
Please import the example as a system project and you will be able to debug both cores at the same time.
Regards,
Ashwin
Hi Ashwin,
i have not imported as a system project nor i can see any examples to do so. Could u please share how its done
Regards,
Abhiram N P
Hi Abhiram,
While importing in CCS, select the folder "system_freertos_nortos". This will import the example as system project.
Regards,
Ashwin
Hi Aswin,
Thanks for the reply, may i ask another doubt as when we import the system project there is no main.c nor any codes in that example project . Does it come like this and we need to write the peripheral.c and the controller.c or is there something else ?
Regards,
Abhiram 
Hi Abhiram,
The system project does not have a main.c file. The main.c files are present in the projects belonging to each core. The driver code can be wriiten in the respective core's projects.
Regards,
Aswin
Hi Aswin,
could u be more specific to how ill be able to write one code say controller.c in one core and the slave the peripheral.c in another core and debug it at the same time. its not about the code im having issue , i havent used this setup such that im not able to see where ill write these codes separately for different cores. Could u be more specific to this
Regards,
Abhiram
Hi Abhiram,
So the requirement is that one core will have controller.c file and another core will have the peripheral.c file. Say core 0-0 has peripheral.c and core 0-1 has the controller.c code as given in the initial screenshot. Once the project is set, we can build the system project. Building the system project means both the projects core0-0 and core0-1 will also be built automatically. Once thats is done, we will have the out file for both the project.
Now to debug them, start the target confoguration. When the target configuration is launced we can see all the core like below,

Now select both the cores, core 0-0 and core0-1 and right click and click on group cores option as below

Now connect to core 0-0 and load the program

Do the same for core 0-1.
Now you can see both the cores at the main() function.

Regards,
Aswin
could u be more specific to how ill be able to write one code say controller.c in one core and the slave the peripheral.c in another core
I have explained the steps to debug multiple cores in the above reply. Can you please let me know the exepection regarding 'writing the controller code in one core and slave code in another'
Regards,
Aswin