Tool/software:
Hello.
I am working on adapting some of single-core code for the f28379D into a multi-core design that utilizes the CLAs. I am currently debugging a CLA task that is triggered by the ISR (in CPU2) for ADC EoC interrupts.
I am able to debug both my cores successfully, and I am using the steps mentioned here (CCS/TMS320F28377S: How to debug CLA code - C2000 microcontrollers forum - C2000︎ microcontrollers - TI E2E support forums) to debug my CLA code.
While the task seems to trigger (the first time)n correctly. Hitting resume on CCS does not cause the CLA to continue and let the task get re-triggered and run into a `mdebugstop`. Instead, it appears to just jump to the next instruction. This continues past the bounds of the task, as MPC keeps incrementing every cycle. I was wondering if there is a diagnosis for why this may be happening.
I am initializing my CLA and tasks correctly (as far as I know) from CPU2 after CPU2 is woken up by CPU1 and does some checks on peripheral ownership (which I have verified to be correct).
Best,
Prakhar
HI Prakhar,
Can you confirm if you've followed the steps detailed in the debugging tips section in the CLA User's Guide:
https://software-dl.ti.com/C2000/docs/cla_software_dev_guide/debugging.html
Regards,
Ozino
Hi Ozino, Yes I have.
After debugging this some more. I am noticing a strange issue that may indicate it is an issue with my memory configuration.
i have my memory configured as follows:
However, I was not configuring LSXRAM blocks using the API in memcfg.h. I now include the following instructions before I enable the CLA in the CPU2 subsystem
```
This leads to my CLA attempting to execute code at 0x0B00 - which is right after LS5 - my CLA program memory ends.
Removing the last line
```
If this information helps - when I do run
```
I tried performing the memory configuration after enabling the CLA and its tasks (as opposed to doing it before) - and that seems to fix the issue. I wonder why that is the case.
Hi Prakhar,
Glad to see you got it working.
Please note that is the correct sequence to enable the CLA. You can check out this document that details how to enable the CLA in an existing example.
/cfs-file/__key/communityserver-discussions-components-files/171/CLAProjectStructureUG.pdf
The user's guide in the CLA describes the order in which the memory needs to be configured.
Regards,
Ozino