Part Number: MSPM33-SDK
Other Parts Discussed in Thread: MSPM33C321A
Hello,
I'm working on MSPM33C321A on CCS, I have declared a structure where inside there are other structures, like this:
I check that:
sizeof(MainStructure) is not equal to sizeof (sStructure1) + sizeof(u16Data1) + sizeof (sStructure2) + sizeof (sStructure3) + .... + sizeof (sStructure7) + sizeof(u16Data2)
But if the int16_t are moved by uint32_t, I have :
sizeof(MainStructure) = sizeof (sStructure1) + sizeof(u32Data1) + sizeof (sStructure2) + sizeof (sStructure3) + .... + sizeof (sStructure7) + sizeof(u32Data2)
I checked in linker file, and the alignment are declare on 16 bits

Could you tell me if it possible to fix this issue ?
Thanks