Hello,
I was trying to compile code with ti-cgt-arm_20.2.5.LTS armcl but got "error #67: enumeration value is out of "int" range". Here below is the log:
FAILED: soc/hlos/sample/awr294x-evm/CMakeFiles/CycurSOC_HLOS_AWR294X_Sample.dir/Debug/__/__/__/__/generated/awr294x_evm/freertos/r5fss0-0/ti_board_open_close.c.o
/home/mmao/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl --compile_only --c_file=/home/mmao/Projects/CycurSoC/socsecswexploration/build/awr294x/generated/awr294x_evm/freertos/r5fss0-0/ti_board_open_close.c -DSOC_AWR294X -DCMAKE_INTDIR=\"Debug\" --include_path=/home/mmao/ti/mmwave_mcuplus_sdk_04_02_00_03/mcu_plus_sdk_awr294x_08_02_00_25/source --include_path=/home/mmao/ti/mmwave_mcuplus_sdk_04_02_00_03/mcu_plus_sdk_awr294x_08_02_00_25/source/kernel/freertos/FreeRTOS-Kernel/include --include_path=/home/mmao/ti/mmwave_mcuplus_sdk_04_02_00_03/mcu_plus_sdk_awr294x_08_02_00_25/source/kernel/freertos/portable/TI_ARM_CLANG/ARM_CR5F --include_path=/home/mmao/ti/mmwave_mcuplus_sdk_04_02_00_03/mcu_plus_sdk_awr294x_08_02_00_25/source/kernel/freertos/config/awr294x/r5f --include_path=/home/mmao/Projects/CycurSoC/socsecswexploration/build/awr294x/generated/awr294x_evm/freertos/r5fss0-0 -mv7R5 -me --code_state=32 --include_path="/home/mmao/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --diag_warning=225 --diag_wrap=off --display_error_number --emit_warnings_as_errors --enum_type=int --c11 --strict_ansi --preproc_with_compile --preproc_dependency=soc/hlos/sample/awr294x-evm/CMakeFiles/CycurSOC_HLOS_AWR294X_Sample.dir/Debug/__/__/__/__/generated/awr294x_evm/freertos/r5fss0-0/ti_board_open_close.c.o.d --output_file=soc/hlos/sample/awr294x-evm/CMakeFiles/CycurSOC_HLOS_AWR294X_Sample.dir/Debug/__/__/__/__/generated/awr294x_evm/freertos/r5fss0-0/ti_board_open_close.c.o
"/home/mmao/ti/mmwave_mcuplus_sdk_04_02_00_03/mcu_plus_sdk_awr294x_08_02_00_25/source/drivers/soc/awr294x/soc_rcm.h", line 173: error #67: enumeration value is out of "int" range
"/home/mmao/ti/mmwave_mcuplus_sdk_04_02_00_03/mcu_plus_sdk_awr294x_08_02_00_25/source/drivers/soc/awr294x/soc_rcm.h", line 238: error #67: enumeration value is out of "int" range
"/home/mmao/ti/mmwave_mcuplus_sdk_04_02_00_03/mcu_plus_sdk_awr294x_08_02_00_25/source/drivers/soc/awr294x/soc_rcm.h", line 252: error #67: enumeration value is out of "int" range
"/home/mmao/ti/mmwave_mcuplus_sdk_04_02_00_03/mcu_plus_sdk_awr294x_08_02_00_25/source/drivers/soc/awr294x/soc_rcm.h", line 275: error #67: enumeration value is out of "int" range
"/home/mmao/ti/mmwave_mcuplus_sdk_04_02_00_03/mcu_plus_sdk_awr294x_08_02_00_25/source/drivers/soc/awr294x/soc_rcm.h", line 379: error #67: enumeration value is out of "int" range
"/home/mmao/ti/mmwave_mcuplus_sdk_04_02_00_03/mcu_plus_sdk_awr294x_08_02_00_25/source/drivers/soc/awr294x/soc_rcm.h", line 399: error #67: enumeration value is out of "int" range
The soc_rcm.h is a source file from mmwave_mcuplus_sdk_04_02_00_03 and it has enumeration values assigned with 0xFFFFFFFFu. I tried to resolve the issue with compiling option "--enum_type=int" but it didn't work.
How should I resolve the issue?
Thanks,
Matthew