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.

TMS320F280039C: CCS and compilation issue

Part Number: TMS320F280039C

Hi Experts,

My customer is using macro to exclude some members in a struct, like the picture below(bottom left):


The macro FAULT_DERATE is defined in another header(say, myself.h), which is not included by this file, but included by other source files in the project.

In this file, the struct should not has the two members at line 32 and 33, but CCS still think that is has. I can tell this from line 32 and 33 is not grayed out, and the expression panel on top right still has the two member. 


However, as I assign values to these member, you can see mis-align is happening. I assign 6 to u16fastfaultflag, but the expression window show that u16FaultDerateCnt has the 6. Note that member u16FaultDerateCnt does not exist in the actual code.

For the source files that has included mydef.h, there is no such misalign. But this will still cause confusion to developers. Could you please help explain what’s the issue here and how to avoid this?

Regards,

Hang