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.

AM6422: CCS-How to use the -fno-short-enums in R5 FreeRTOS project

Part Number: AM6422

Tool/software:

Hi Ti experts,

I'm using customized board based on AM6422. Linux based on SDK 09.02.00.08 and MCU SDK based on 09_02_01_05.

I'm using CCS12.1.0 and TI Clang v3.2.2.LTS

I want to define enum type to 4bytes by following setting:

When building the project I will get the warnings about the enum type incompatible warnings. For the FreeRTOS kernel and driver libs, I have already rebuild them to use 4bytes enum. But for the libs which are provided in compiler ti-cgt-armllvm still have the enum incompatible warnings like bellow,

#16027-D object files have incompatible enumeration types ("divsi3.S.obj in C:\ti\ti-cgt-armllvm_3.2.2.LTS\lib\clang/15.0.7/lib/armv7r-ti-none-eabihf/libclang_rt.builtins.a" = packed, "./syscfg/ti_dpl_config.o" = 32-bit)

#16027-D object files have incompatible enumeration types ("sprintf.c.obj in C:\ti\ti-cgt-armllvm_3.2.2.LTS\lib\armv7r-ti-none-eabihf/c/libc.a" = packed, "./syscfg/ti_dpl_config.o" = 32-bit)

#16027-D object files have incompatible enumeration types ("write.c.obj in C:\ti\ti-cgt-armllvm_3.2.2.LTS\lib\armv7r-ti-none-eabihf/c/libsysbm.a" = packed, "./syscfg/ti_dpl_config.o" = 32-bit)

How should I do to solve these warnings?

Best Regards

xixiguo