Other Parts Discussed in Thread: AM5728
Tool/software: TI C/C++ Compiler
I have an issue, i have those errors
line 162: error #173: invalid type conversion
line 163: error #173: invalid type conversion
i use --diag_suppress=173, but it's not affecting,
'Building file: "../app_main.cpp"' 'Invoking: C6000 Compiler' "C:/ti/ti-cgt-c6000_8.3.6/bin/cl6x" -mv6600 --include_path="C:/ti/pdk_am57xx_1_0_10/packages/ti/boot/sbl/board/src" --include_path="C:/ti/pdk_am57xx_1_0_10/packages/ti/boot/sbl/soc/am57xx" --include_path="C:/ti/pdk_am57xx_1_0_10/packages/ti/board/src/maxxAM572x/include" --include_path="C:/Maxx_Firmware/projects/NIMU_attempt" --include_path="C:/Maxx_Firmware/projects/NIMU_attempt/inc" --include_path="C:/ti/ti-cgt-c6000_8.3.6/include" --include_path="C:/ti/ndk_2_26_00_08/packages" --include_path="C:/ti/pdk_am57xx_1_0_10/" --include_path="C:/ti/pdk_am57xx_1_0_10/packages/" --include_path="C:/ti/pdk_am57xx_1_0_10/packages/ti/transport/ndk/nimu" --include_path="C:/Maxx_Firmware/inc" --include_path="C:/Maxx_Firmware/src/app" --include_path="C:/ti/pdk_am57xx_1_0_10/packages/ti/boot/sbl/board/src" --include_path="C:/Maxx_Firmware/src/app/common" --define=TI_RTOS --define=USE_BIOS --define=SOC_AM572x --define=idkAM572x --define=C66X --define=am5726 --define=core1 -g --diag_remark=173 --diag_suppress=173 --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="app_main.d_raw" --cmd_file="configPkg/compiler.opt" "../app_main.cpp"
i also tried to use pragmas:
#ifdef _TMS320C6X #define IGNORE_CONVERSIONS _Pragma("diag_push") \ _Pragma("diag_suppress 173")\ _Pragma("CHECK_MISRA(\"-9.1\")") #define IGNORE_CONVERSIONS_RESTORE _Pragma("diag_pop")
But no effect either....
Can someone help?