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.
Hello,
I'm trying to debug some FW that is running on the CLA (currently debugging on a LaunchPad). This is code that has been generated in Simulink and I've tried debugging it both in CCS11 and CCS12.
I've connected to the CLA, I've loaded the symbols and I can single step through the code.
However, although I see a list of variables and I can add watch expressions, I can't see the value of this expressions if the CLA is selected; I will only see them if the CPU is selected. Those variables are located on a local shared ram (LSRAM) which is been configured as CLA Data. The variable does update, however I need to select the CLA to advance the program counter and then select the CPU again to see the value. Is this normal? It definitely shouldn't.
The other problem I have is that I can't put a software debug (only __mdebugstop(); which requires to reload the code and won't flush the pipeline). From what I see in the MCU Technical Reference Manual, this is a type 2 CLA that should be fully debuggable. What do I need to do to make use of that feature?
Hello Iván, our subject matter expert best suited to support a question like this is out of the office today. I apologize for the inconvenience, but you should hear back from him tomorrow.
Hi,
I am unable to reproduce the issue. I am able to view the variables and is able to set breakpoints (by double-clicking the line in the CCS GUI)
Regards,
Veena
Hello,
Thank you for testing. Please let me know which release of CCS you use, wether it is compatible with the C2000 Support Package for Simulink and any other relevant information.
Also, is there any example I could go to in order to see if the problem is the Project Configuration or my CCS environment?
Thank you.
I am using CCS v12, running on a F28004X Launchpad. I tried a normal CLA example from C2000ware, not with Simulink
Regards,
Veena
I can confirm that it does work normally in the example for me too.
By comparing the project settings, I see that the problem is that Simulink does not specify the MCU in "Build Settings" and thus, in the field cla support, only the options cla 0 and 1 were available. Changing this allows me to set breakpoints on *.cla files, although it won't let me do it on *.c files which have sections to be compiled for C28x and other for CLA, which is how Simulink generates the code.
I still can't see variables which are placed on the ClaData with the CLA selected.
Changing from COFF to EABI as in the example makes no difference. Any clue will be appreciated.
Thanks.
I am not too familiar with the Simulink code. I will forward this query to someone with Simulink expertise to help you further
Regards,
Veena
Ivan,
We do not have resource to support Simulink questions. Please take a look at MathWorks FAQ at this link below:
If you have further questions, the best way to get support on MathWorks products is to contact MathWorks live tech support.
You can also search for answers or post a question on MATLAB Answers C2000 forum. Additionally, there is info on MathWorks support C2000 in Documentation and Examples.
I will close the thread from here as the software is supported by MathWorks team on their forum.
Thanks & Regards,
Santosh