Unable to add signals to Code Mappings for TI C2000 CLA Task

Hi everyone,
I am working on a project using the TI C2000 F28379D and trying to implement a control algorithm inside a CLA Subsystem using Simulink and Embedded Coder.
I am encountering an issue where I cannot add named signals to the Signals/States tab in the Code Mappings - Component Interface editor.
My setup:
  • Hardware: TI Delfino F28379D.
  • Subsystem: Triggered by a CLA Task Trigger block (e.g., Task 1).
  • Signals: I have explicitly named the input and output signal lines (e.g., 'sin', 'phase') connecting to the CLA subsystem.
The Problem:When I open the Code Mappings editor and click the green "+" (Add Signal) button in the Signals/States tab, the list is empty. Consequently, I cannot configure the Storage Class to CpuToCla1MsgRAM or Cla1ToCpuMsgRAM. This results in the following error during compilation:
"None of the elements in the model related to CLA subsystem is configured for CLA storage classes..."
What I have tried:
  1. Named the signal lines explicitly on the Simulink canvas.
  2. Performed Ctrl+D (Update Diagram) to refresh the model.
  3. I have carefully read and followed the MATLAB documentation: "Overview of CLA Configuration for C2000 Processors Using Subsystem", but I am still unable to make the signals appear in the Code Mappings list.
Am I missing a specific step or a hidden configuration to make these signals "visible" for CLA memory mapping?
Any help or suggestions would be greatly appreciated. Thank you!

 Réponse acceptée

Hi,
Please select the signal that you want to add to the Code Mappings editor.
Pause on the ellipsis that appears above or below the signal line to open the action bar. Click the Add Signal button.
See the link below for more details.
Hope this helps.
Thanks,
Mukul

2 commentaires

Hi Mukul,
Thank you for your guidance on the signal mapping; it helped me resolve the previous issue.
However, I have encountered a new problem: the CLA task is not executing after deployment. Here are the details of my current setup:
  • Symptom: I placed a counter inside the CLA task subsystem, but the value remains at 0 (it does not increment).
  • Trigger Source: I have set the CLA task trigger to ADCAINT1.
  • ADC Status: The ADC module is working correctly and updating values on the CPU side, with the interrupt generation enabled.
  • Issue: Even though the ADC is running, it seems the CLA task is not being triggered or the CLA core is not executing the code.
Could you please advise if there are additional configurations needed to "bridge" the ADC interrupt to the CLA, or if there's a specific step to ensure the CLA core is properly initialized and the code is copied to the CLA RAM in Simulink?
Best regards,
How exactly are you checking whether the counter inside CLA is increasing or not?
If you are running external mode, ensure you take the signal out of the CLA subsystem and then log the signal. You will not be able to log the signal inside CLA subsystem.
Hope this helps.
Thanks,
Mukul

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Version

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by