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.

Compiler/MSP430F5232: INTERNAL ERROR: ti-cgt-msp430_18.12.0.LTS

Part Number: MSP430F5232
Other Parts Discussed in Thread: CC1101, TEST

Tool/software: TI C/C++ Compiler

Hello!

I have updated the TI compiler version to latest v18.12.0.LTS and I have the next compiling error with a MSP430f5232 (when with previous compiler version I didn't have any error):

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

**** Build of configuration Release for project _DM108_F5232_RELEASE ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../Configuracion_Mota.c'
'Invoking: MSP430 Compiler'
"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_18.12.0.LTS/bin/cl430" -vmspx --code_model=large --data_model=restricted --near_data=globals -O4 --opt_for_speed=5 --use_hw_mpy=F5 --include_path="C:/ti/ccsv6/ccs_base/msp430/include" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_18.12.0.LTS/include" --include_path="C:/Users/PC_WS_HW_01/WorkSpace_CCS/_DM108_F5232_RELEASE" --include_path="C:/Users/PC_WS_HW_01/WorkSpace_CCS/ADV_LIB_DM108_5232_RELEASE/AES_128bits" --include_path="C:/Users/PC_WS_HW_01/WorkSpace_CCS/ADV_LIB_DM108_5232_RELEASE/MSP430F5232" --include_path="C:/Users/PC_WS_HW_01/WorkSpace_CCS/ADV_LIB_DM108_5232_RELEASE/CC1101" --include_path="C:/Users/PC_WS_HW_01/WorkSpace_CCS/ADV_LIB_DM108_5232_RELEASE/CRC_software" --include_path="C:/Users/PC_WS_HW_01/WorkSpace_CCS/ADV_LIB_DM108_5232_RELEASE/Math_Functions" --include_path="C:/Users/PC_WS_HW_01/WorkSpace_CCS/ADV_LIB_DM108_5232_RELEASE/Mesh_Net_Library" --include_path="C:/Users/PC_WS_HW_01/WorkSpace_CCS/ADV_LIB_DM108_5232_RELEASE/Modbus_Library" --include_path="C:/Users/PC_WS_HW_01/WorkSpace_CCS/ADV_LIB_DM108_5232_RELEASE/One_Wire_Library" --advice:power="1,2,3,4,5,6,7,8,9,10,12,14" --define=__MSP430F5232__ --printf_support=minimal --diag_warning=225 --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="Configuracion_Mota.d" "../Configuracion_Mota.c"

>> Compilation failure
subdir_rules.mk:7: recipe for target 'Configuracion_Mota.obj' failed

INTERNAL ERROR: C:\ti\ccsv6\tools\compiler\ti-cgt-msp430_18.12.0.LTS\bin\cg430.exe experienced a segmentation fault
while processing function Carga_Configuracion_MOTA file ../Configuracion_Mota.c line 140

This is caused by a defect in the TI G3 C/C++ Codegen.
TI Customer Support may be able to suggest a workaround to avoid this.

Upgrading to the newest version of the compiler may fix this problem.

Contact TI in the E2E support forums at http://e2e.ti.com under
"Development Tools", "TI C/C++ Compiler". See the link titled
"Submitting an issue".

We need to see this ENTIRE error message and a complete, reproducible
test case including ALL of the command-line options.
Include the .pp file created by option --preproc_with_comment

gmake: *** [Configuracion_Mota.obj] Error 1

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

With previous compiler versions, like v18.1.4.LTS , I didn't have any compiling problem with the same project.

Adding information, in line 140 of "Configuracion_Mota.c" there is a multipliying operation:

Mota_Conf.Microsegundos_Delay_Transmision *= 1000ul;

where Mota_Conf.Microsegundos_Delay_Transmision is defined as unsigned long;

 

Best regards, 

Luis J.