AM6422: 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 as bellow:

I can rebuild the drivers.am64x.r5f.ti-arm-clang.debug.lib and freertos.am64x.r5f.ti-arm-clang.debug.lib with -fno-short-enums to clear the warning on drivers.am64x.r5f.ti-arm-clang.debug.lib and freertos.am64x.r5f.ti-arm-clang.debug.lib.

But how should I do to clean the warning on these 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)

Best Regards

xixiguo