Other Parts Discussed in Thread: C2000WARE
Hello everyone
I am trying to use cJSON Parser for TMS320F28388D.
I got Dave Gamble's cJSON Parser on Github.
When compiling by adding .c and .h files in 28388D Project, the following error occurs.
The full build log is as follows.
**** Build of configuration CPU2_FLASH for project sci_ex2_loopback_interrupts ****
"C:\\ti\\ccs1000\\ccs\\utils\\bin\\gmake" -k -j 12 all -O
Building file: "../Service/cjson/cJSON.c"
Invoking: C2000 Compiler
"C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --idiv_support=idiv0 --tmu_support=tmu0 -Ooff --include_path="E:/201006_TI_Workspace/sci_ex2_loopback_interrupts/Service/LED_Service" --include_path="E:/201006_TI_Workspace/sci_ex2_loopback_interrupts/Manager/CPU_Timer_Manager" --include_path="E:/201006_TI_Workspace/sci_ex2_loopback_interrupts/Service/AUX_CAN_Service" --include_path="E:/201006_TI_Workspace/sci_ex2_loopback_interrupts/Service/FOD_Service" --include_path="E:/201006_TI_Workspace/sci_ex2_loopback_interrupts/Service/LOD_Service" --include_path="E:/201006_TI_Workspace/sci_ex2_loopback_interrupts/Service/INT_CAN_Service" --include_path="E:/201006_TI_Workspace/sci_ex2_loopback_interrupts/Service/Debug_Service" --include_path="E:/201006_TI_Workspace/sci_ex2_loopback_interrupts/Service/PC_Service" --include_path="E:/201006_TI_Workspace/sci_ex2_loopback_interrupts/Manager/Initialize_Manager" --include_path="E:/201006_TI_Workspace/sci_ex2_loopback_interrupts" --include_path="E:/201006_TI_Workspace/sci_ex2_loopback_interrupts/device" --include_path="C:/ti/c2000/C2000Ware_3_03_00_00/driverlib/f2838x/driverlib" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance=all --define=_FLASH --define=CPU2 --define=DEBUG --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="Service/cjson/cJSON.d_raw" --include_path="E:/201006_TI_Workspace/sci_ex2_loopback_interrupts/CPU2_FLASH/syscfg" --obj_directory="Service/cjson" "../Service/cjson/cJSON.c"
>> Compilation failure
Service/cjson/subdir_rules.mk:9: recipe for target 'Service/cjson/cJSON.obj' failed
INTERNAL ERROR: C:\ti\ccs1000\ccs\tools\compiler\ti-cgt-c2000_20.2.0.LTS\bin\acia2000.exe experienced a segmentation fault
while processing function (unknown or file scope) file (unknown) line 0
This is caused by a defect in the TI EABI C/C++ Parser.
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: *** [Service/cjson/cJSON.obj] Error 1
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
I don't know why I get a compile error.
Thank you for answer.
The source code is also attached.cJSON_git.hcJSON_git.c