The enumeration generated by S32DS3.5 for S32K312 defaults to a length of 32 bits.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

The enumeration generated by S32DS3.5 for S32K312 defaults to a length of 32 bits.

199 次查看
victory
Contributor III

1.Enumeration values compiled with S32DS3.5 default to a length of 32 bits. Please refer to the attached document for more details.

2.I want to change the size of the enumeration from 32 bits to 8 bits. Where can I make this modification?

Above, thank you!

0 项奖励
回复
2 回复数

163 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @victory,

Change -fno-short-enums to -fshort_enums.

danielmartynek_0-1718614958351.png

If you use RTD drivers, however, according to the release notes, it requires -fno-short-enums.

danielmartynek_1-1718615099399.png

 

Regards,

Daniel

 

0 项奖励
回复

129 次查看
victory
Contributor III

The problem has been solved.

Thanks

0 项奖励
回复