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.

TMS320F280049: Data Structure Alignment Instructions

Part Number: TMS320F280049

Hi Team,

typedef struct DataEnding
{
    uint32_t CrcValue;
    uint16_t Mark;
}RxTxDataEndingType;

sizeof(RxTxDataEndingType) is 4 now.

How to use alignment instruction to let sizeof(RxTxDataEndingType) is 3?

#pragma pack(n) is not recognized.

__attribute__((packed)) and __attribute__((aligned(n))) doesn't work.

Thanks & Regards

Yale Li