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.

TMS320F28335: 结构体如何按1字节对齐,加__attribute__((packed, aligned(1)))编译不过呀(CCS11的环境)

Part Number: TMS320F28335

typedef struct MoveXYZ_S //Download or Upload
{
long long xyz; //    i8 xyz[4];    串口发过来的,原值是1000( 11 11101000b),这里用啥类型都不对,调试时发现二进制被插入了8个0
i8 code;

}__attribute__((packed, aligned(1)));