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.
Tool/software: Code Composer Studio
Hello,
I am trying do a program with dual-core and CLA. I am studying the code from controlsuite and c2000ware, but i do not know how to run the sample code properly, here is my question:
1. When I open the controlsuite of CLA example, I saw 2 files, one is .c file and one is .cla file, should I direct debug this project in CPU1 or CLA1?
2. This is based on question 1 when I actually debug in CPU1. Once I did it, I realize in task window that CLA1 is (disconnected), I am wondering does it means CLA is not working?
3. This is based on question 1 when I need to debug in CLA1. Once I debug other project in CPU1, and connect and load (CLA example) project in CLA1, somehow I think this is working, since this is a divide code and the divide is happening, but i am not record any result fro vector variable.
Thanks!
Tianxiang
Hi,
Even though there are 2 files, .out file is only one. So you just need debug the project in CPU1 view only. I am not sure how are you doing step 3 here. What do you mean by connect to CLA1 and load the project in CLA1? Which .out you are loading?
When you load the code on CPU1, it's load the program for CPU1 as well as CLA1. Even though CLA1 is not connected, when task is triggered, CLA1 will execute the task.
Regards,
Vivek Singh
Hi Vivek
For question 3, it is same .out I used to load on CPU1. For some reason, after I load other program on CPU1, I could manually connect CLA1, and load this "CLA debug" program on CLA. Looks it could be loaded and run.
So, let me clarify a little bit. Once I want to use CLA1 or CLA2, all I need to do is to use a .cla file in the project of CPU1 or CPU2, and the .out file would do the job for me and connect the CLA.
One more question would be: I read the manual and it says CLA could change the EPWM, ECAP and GPIO in 28379d, should I just change the register of EPWM, ECAP, GPIO in ClaxTasky from .cla file?
Thanks a lot,
Tianxiang
Hi,
One more question would be: I read the manual and it says CLA could change the EPWM, ECAP and GPIO in 28379d, should I just change the register of EPWM, ECAP, GPIO in ClaxTasky from .cla file?
Yes, that is correct. For GPIO, you need to change the GPIO ownership to CLA (GPxCSELy register) to enable GPIO toggle from CLA.
Regards,
Vivek Singh