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.

CCS/TMS320F28379D: Type #515 a value of type "int" cannot be assigned to an entity of type "union DBFED_REG"

Part Number: TMS320F28379D


Tool/software: Code Composer Studio

I am receiving the following error:

Description Resource Path Location Type
#515 a value of type "int" cannot be assigned to an entity of type "union DBFED_REG" untitled3.c /hbl880 line 174 C/C++ Problem

And the corresponding lines are:

    EPwm1Regs.DBRED = 0;               // Dead-Band Generator Rising Edge Delay Count Register
    EPwm1Regs.DBFED = 0;               // Dead-Band Generator Falling Edge Delay Count Register

How can I fix this? Thank you for your help. 

Note: I am using CCS 6.2

  • Canberk,

    Change the two code lines to:

    EPwm1Regs.DBRED.bit.DBRED = 0;
    EPwm1Regs.DBFED.bit.DBRED = 0;

    Using .all should work, too:

    EPwm1Regs.DBRED.all = 0;
    EPwm1Regs.DBFED.all = 0;

    Please let me know if this fixes your error.

    I hope this helps. If this answers your question, please click the green "Verified Answer" button. Thanks.

    - Ken