28335 code generation error message

Hi,

Anyone can explain the reason of getting the following error codes? Thanks.

Error Message:
Element: DLL_EXT_ESB Name: MainCCode
ERROR: invalid lvalue of assignment operation
ERROR: syntax error before or at line 203 in file ‘C:\Users\KITCHE~1\AppData\Local\Temp\PsimTmp\script_2.cxx’
==>: fSSCB1 = !fGblTI_PWM1;
BUG: fSSCB1 = !fGblTI_PWM1<== ???
ERROR: invalid rvalue of assignment operation
ERROR: syntax error before or at line 204 in file ‘C:\Users\KITCHE~1\AppData\Local\Temp\PsimTmp\script_2.cxx’
==>: fSSCB1_1 = fGblTI_PWM1;
BUG: fSSCB1_1 = fGblTI_PWM1<== ???
ERROR: invalid rvalue of assignment operation
ERROR: syntax error before or at line 211 in file ‘C:\Users\KITCHE~1\AppData\Local\Temp\PsimTmp\script_2.cxx’
==>:

can you post your simulation?

I am also getting something similar to this with F28335.

Error Message:
Element: DLL_EXT_ESB Name: MainCCode
ERROR: missing ‘)’ before ‘{’
ERROR: no expression following (
ERROR: invalid operands for less than operator <
ERROR: syntax error before )
ERROR: syntax error before or at line 224 in file ‘C:\Powersim\PSIM_2021a_Softkey\PsimTmp\sD0601.cxx’
==>: fS3 = (fS3 < ({(-10000)})) ? ({(-10000)}) : ((fS3 > 10000.0) ? 10000.0 : fS3);
BUG: fS3 = (fS3 < ({<== ???
ERROR: missing ‘;’ before ‘)’
ERROR: syntax error before or at line 224 in file ‘C:\Powersim\PSIM_2021a_Softkey\PsimTmp\sD0601.cxx’
==>: fS3 = (fS3 < ({(-10000)})) ? ({(-10000)}) : ((fS3 > 10000.0) ? 10000.0 : fS3);
BUG: fS3 = (fS3 < ({(-10000)<== ???
ERROR: syntax error
ERROR: syntax error

Let me know if I have to fix something in my simulation?

Hi @chandus127,

Thanks for your questions!

Can you send us or attach your schematic? We will have a look.

Regards,
Amit

FoC of PMSM.psimsch (117.0 KB)
Please find the attached!

Hi Amit,

I couldn’t see any error after replacing digital PI controllers with TI DMC PI controllers.
_
Chandra Sekhar

Ok, @chandus127. Thanks for letting me know!

Regards,
Amit