PWM-triggered CLA in Embedded Coder
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello everyone,
I am trying to use the CLA of the mentioned Launchpad, using Matlab's Embedded Coder.
I want to build up from the example of in which a LED blinks at 1 Hz from the following link.
Yet, the trigger of the CLA routine of this example is software based, and I would like to make it PWM based.
To this end, I added ePWM9, which generates and interruption. Then, I the CLA setting to be triggered by ePWM9. The simulink file is attached.
When I build this routine, I get the error ' Code generation information file does not exist. '. In the compilation report, I see an error saying "CLA_exp5_DWork" is undefined".
Could someone be gentle enough to help me ? Has something been defined wrongly ? It would indeed be very helpful if someone could modify the model proposed by Matlab so that it runs on an PWM-based CLA interrupt.
Thank you very much,
Patricio
0 commentaires
Réponses (2)
Venkatesh Chilapur
le 2 Nov 2020
Hi,
It is likely that the Class of the simulink parameter Cla_out might not be updated.
It can be updated by following the below steps:
Goto MODELLING tab and open the Data Object Wizard.
If the Class of the parameter is shown as Simulink.Signal, it needs to be changed to tic2000demospkg.Signal by following the below steps:
1. Click on Change Class tab and select customize class lists.
2. Under Signal classes, select tic2000demospkg.Signal and click ok.
3. Now, select the newly added class, tic2000demospkg.Signal for the object Cla_out.
Now, Under Data Stores tab under Code Mappings – C window, ensure that the storage class for Cla_out is updated to Cla1ToCpuMsgRAM as shown below:
HTH,
Regards,
Venkatesh C
Venkatesh Chilapur
le 2 Nov 2020
Hi,
Please try attached model.
You can get more details on the configurations around RT block from the model 'c28379D_dataintegrity_cla.slx' available at:
HTH,
Regards,
Venkatesh C
1 commentaire
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!