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.
Hi
I'm doing a project in Matlab2017b with ePWM1 block and SCI interface to send data to hardware.
When I building with Embedded Coder, I have some problems. I think some register are not configurated also It can't find in TMS320x2833x, 2823x Enhanced Pulse Width
Modulator (ePWM) Module Reference Guide.
How Can I resolve it ?
"Exp_2.c", line 187: error: struct "EPWM_REGS" has no field "CMPCTL2"
"Exp_2.c", line 187: error: struct "EPWM_REGS" has no field "CMPCTL2"
"Exp_2.c", line 190: error: struct "EPWM_REGS" has no field "CMPC"
"Exp_2.c", line 191: error: struct "EPWM_REGS" has no field "CMPD"
"Exp_2.c", line 281: error: struct "EPWM_REGS" has no field "DCACTL"
"Exp_2.c", line 281: error: struct "EPWM_REGS" has no field "DCACTL"
"Exp_2.c", line 291: error: struct "EPWM_REGS" has no field "DCBCTL"
"Exp_2.c", line 291: error: struct "EPWM_REGS" has no field "DCBCTL"
"Exp_2.c", line 305: error: struct "EPWM_REGS" has no field "DCTRIPSEL"
"Exp_2.c", line 305: error: struct "EPWM_REGS" has no field "DCTRIPSEL"
"Exp_2.c", line 313: error: struct "EPWM_REGS" has no field "TZDCSEL"
"Exp_2.c", line 313: error: struct "EPWM_REGS" has no field "TZDCSEL"
"Exp_2.c", line 321: error: struct "EPWM_REGS" has no field "DCFCTL"
"Exp_2.c", line 321: error: struct "EPWM_REGS" has no field "DCFCTL"
"Exp_2.c", line 322: error: struct "EPWM_REGS" has no field "DCFOFFSET"
"Exp_2.c", line 323: error: struct "EPWM_REGS" has no field "DCFWINDOW"
"Exp_2.c", line 328: error: struct "EPWM_REGS" has no field "DCCAPCTL"
"Exp_2.c", line 328: error: struct "EPWM_REGS" has no field "DCCAPCTL"
"Exp_2.c", line 338: error: struct "EPWM_REGS" has no field "EPWMXLINK"
"Exp_2.c", line 339: error: struct "EPWM_REGS" has no field "EPWMXLINK"
"Exp_2.c", line 340: error: struct "EPWM_REGS" has no field "EPWMXLINK"
"Exp_2.c", line 341: error: struct "EPWM_REGS" has no field "EPWMXLINK"
"Exp_2.c", line 342: error: struct "EPWM_REGS" has no field "EPWMXLINK"
Regards
Eddjo
Hi,
Please ensure to use the correct PWM and SCI block for f28335.
Try running 'targetupdater' to configure the toolchain.
If problem continues, try to re-install support package and work with demo example project for F28335 and see if it is success.