28335 code generation error message

Altair Forum User
Altair Forum User
Altair Employee
edited August 2023 in Community Q&A

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'
==>:

Tagged:

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2023

    can you post your simulation?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2023

    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?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2023

    Hi @chandus127,

    Thanks for your questions!

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

    Regards,
    Amit

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2023


    Please find the attached!

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2023

    Hi Amit,

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

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited August 2023

    Ok, @chandus127. Thanks for letting me know!

    Regards,
    Amit

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.