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.

LAUNCHXL-F28379D: ePWM triggering of CLA in Simulink Embedded Coder

Part Number: LAUNCHXL-F28379D

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. 

ch.mathworks.com/.../using-the-control-law-accelerator-cla.html:1230:0]

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.

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.

There is a more complex example at the matlab tutorials I am trying to use, but it is based on another microprocessor and motors.

Thank you very much,

Patricio