Complications implementing a Simulink model onto a TI F28069M Launchpad

1 view (last 30 days)
Hi,
I've been designing a space vector PWM control module for a 3 phase inverter. I have designed and successfully simulated the Simulink model. I now want generate the C Code equivalent and implement it on a TI F28069M Launchpad.
I am iteratively developing the model for implementation. At the moment, it consists of a ePWM block with two constants as CMPA and CMPB values. It simulates but does not build. It outputs the following errors:
line 169: error: struct "EPWM_REGS" has no field "DCACTL"
line 169: error: struct "EPWM_REGS" has no field "DCACTL"
line 179: error: struct "EPWM_REGS" has no field "DCBCTL"
line 179: error: struct "EPWM_REGS" has no field "DCBCTL"
line 187: error: struct "EPWM_REGS" has no field "DCTRIPSEL"
line 187: error: struct "EPWM_REGS" has no field "DCTRIPSEL"
line 195: error: struct "EPWM_REGS" has no field "TZDCSEL"
line 195: error: struct "EPWM_REGS" has no field "TZDCSEL"
line 203: error: struct "EPWM_REGS" has no field "DCFCTL"
line 203: error: struct "EPWM_REGS" has no field "DCFCTL"
line 204: error: struct "EPWM_REGS" has no field "DCFOFFSET"
line 205: error: struct "EPWM_REGS" has no field "DCFWINDOW"
line 210: error: struct "EPWM_REGS" has no field "DCCAPCTL"
line 210: error: struct "EPWM_REGS" has no field "DCCAPCTL"
*Error(s) encountered while building model "untitled":
### Failed to generate all binary outputs.*
I have not modified these values in the ePWM block.
I think the error is in the model configuration. I set up the configuration identical to the model described by Matlab in this Youtube video).
I am not sure what is causing the error.

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!