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.

C2000-3P-SEARCH: Alignment Issue with TMS320F28377S Chip on TI Compiler Versions

Part Number: C2000-3P-SEARCH
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hi 

We have been developing our product using the TSM320F29377S chip.
Our firmware builds successfully with Code Composer Studio (CCS) 9 using the TI v5.12.3.LTS compiler version.
However, with all subsequent versions, including TI v18.12.4.LTS, we encounter compilation errors.
Specifically, we receive the following error in the F2837xS_can.h file:

struct CAN_REGS {
bp_32 rsvd1[2]; <-- error occurs here
};
F2837xS_can.h", line 530: error #2638: The alignment of an array element is greater than the element size

It seems that while the bp_32 type has a 4-byte size, the compiler enforces an 8-byte alignment, causing this issue.

Could you please provide a precise solution to address this alignment problem?

Thank you for your assistance.

sjkim