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.

Problem trying to debug cla following sprc923 video



I’m trying to debug cla of the “cla_adc_fir” sample. When I load only the symbols, the assembler source CLA_FIR.asm shows up as expected, but when I do the “Mixed Source/ASM” command, the binary code doesn’t correspond to the assembler source code. When I step the code, the PC counter arrow follows the assembler source code in wrong positions.

  • I assume that you have two sessions of CCS opened, one for the maic CPU and one for the CLA.

    Here is what I do:

     In the CLA-session: (1) open the project, (2) load the symbols, (3) connect the target.

    Now, assuming you have set the switch CLA_debug to 1, run  the code in the main CPU session. Once the CLA - Task is triggered, the CLA-Window will show a halted CLA at the MDEBUGSTOP instruction at the beginning of the CLA -task. Now you should be able to switch into mixed mode do display the assembly code and the machine code.

    Regards

     

     

     

  • Thanks Frank for your answer. What development environment had you used? I ‘m using CCS 3.3 Full, last version with CLA support, and XDS510LC from spectrum digital.  

     

    If I do a “load program” command on CLA-session, instead of load symbols,  the binary code loaded correspond to the symbols (assembly source), but in this case the debug show an error window when I do a debug step.

     

  • Ari,

     I use CCS3.383.19, tools version 5.2.4 and XDS100V2 or XDS510usb. I don't think that it helps to do "load program" in the CLA - session, because the CLA uses a part of the memory of the main - CPU. I would recommend to try out the following sequence:

    1. Start a CCS session for the main CPU.

    2. do a debug -> connect

    3. open the project

    4. build and load the code into the main CPU

    5. run the  main cpu. (the CLA - interrupt should be triggered periodically;  verify this with a breakpoint). Remove the breakpoint after this test. 

    6. Open a CCS session for the CLA

    7. In the CLA session, open the same project  as in step 3

    8. In the CLA session, load symbols only

    9. in the CLA - session, open the CLA - assembly file

    10. in the CLA - session, do a debug -> connect

    Once the CLA is triggered by the next ADC-start, the CLA-session will stop the execution at the MDEBUGSTOP instruction ( at the beginning of the CLA - Task). From here, you should be able to single step the CLA (F11) and monitor all CLA registers step by step.

    Regards