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.
Tool/software: Code Composer Studio
Hello all,
I am working on my graduation project. I use tm4c123, CCS, and TivaWare library.
the problem is that i can build and run the project properly without Misra checking.
once i configure the compiler option to check the misra rules and try to build the project or sum files of it. Then i have gmake error and the build process doesn't complete
how to fix that ?
Regards,
Sarea
sarea hariri said:once i configure the compiler option to check the misra rules and try to build the project or sum files of it. Then i have gmake error and the build process doesn't complete
Could you please save off the build log to a text file, for both the case where the build completes fine without Misra checks enabled and the case where it fails with Misra checks enabled? You can save the build log as described here. Then attach both files here for us to look at. Thanks!
AartiG,
Thanks for your response.
Here is the files.
**** Build of configuration Debug for project AutosarCanStack **** "C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 8 all -O Building file: "../InitConsole.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --check_misra="required" --preproc_with_compile --preproc_dependency="InitConsole.d_raw" "../InitConsole.c" >> Compilation failure subdir_rules.mk:9: recipe for target 'InitConsole.obj' failed Command-line error #1046: invalid macro definition: ccs=ccs 1 catastrophic error detected in the compilation of "../InitConsole.c". Compilation terminated. gmake: *** [InitConsole.obj] Error 1 Building file: "../main.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --check_misra="required" --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c" >> Compilation failure subdir_rules.mk:16: recipe for target 'main.obj' failed Command-line error #1046: invalid macro definition: ccs=ccs 1 catastrophic error detected in the compilation of "../main.c". Compilation terminated. gmake: *** [main.obj] Error 1 Building file: "../tm4c123gh6pm_startup_ccs.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --check_misra="required" --preproc_with_compile --preproc_dependency="tm4c123gh6pm_startup_ccs.d_raw" "../tm4c123gh6pm_startup_ccs.c" >> Compilation failure subdir_rules.mk:23: recipe for target 'tm4c123gh6pm_startup_ccs.obj' failed Command-line error #1046: invalid macro definition: ccs=ccs 1 catastrophic error detected in the compilation of "../tm4c123gh6pm_startup_ccs.c". Compilation terminated. gmake: *** [tm4c123gh6pm_startup_ccs.obj] Error 1 Building file: "../uartstdio.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --check_misra="required" --preproc_with_compile --preproc_dependency="uartstdio.d_raw" "../uartstdio.c" >> Compilation failure subdir_rules.mk:30: recipe for target 'uartstdio.obj' failed Command-line error #1046: invalid macro definition: ccs=ccs 1 catastrophic error detected in the compilation of "../uartstdio.c". Compilation terminated. gmake: *** [uartstdio.obj] Error 1 Building file: "../arch/arm-cortexM4/drivers/Can.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --check_misra="required" --preproc_with_compile --preproc_dependency="arch/arm-cortexM4/drivers/Can.d_raw" --obj_directory="arch/arm-cortexM4/drivers" "../arch/arm-cortexM4/drivers/Can.c" >> Compilation failure arch/arm-cortexM4/drivers/subdir_rules.mk:9: recipe for target 'arch/arm-cortexM4/drivers/Can.obj' failed Command-line error #1046: invalid macro definition: ccs=ccs 1 catastrophic error detected in the compilation of "../arch/arm-cortexM4/drivers/Can.c". Compilation terminated. gmake: *** [arch/arm-cortexM4/drivers/Can.obj] Error 1 Building file: "../arch/arm-cortexM4/drivers/Dio.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --check_misra="required" --preproc_with_compile --preproc_dependency="arch/arm-cortexM4/drivers/Dio.d_raw" --obj_directory="arch/arm-cortexM4/drivers" "../arch/arm-cortexM4/drivers/Dio.c" >> Compilation failure arch/arm-cortexM4/drivers/subdir_rules.mk:16: recipe for target 'arch/arm-cortexM4/drivers/Dio.obj' failed Command-line error #1046: invalid macro definition: ccs=ccs 1 catastrophic error detected in the compilation of "../arch/arm-cortexM4/drivers/Dio.c". Compilation terminated. gmake: *** [arch/arm-cortexM4/drivers/Dio.obj] Error 1 Building file: "../communication/CanIf/CanIf.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --check_misra="required" --preproc_with_compile --preproc_dependency="communication/CanIf/CanIf.d_raw" --obj_directory="communication/CanIf" "../communication/CanIf/CanIf.c" >> Compilation failure communication/CanIf/subdir_rules.mk:9: recipe for target 'communication/CanIf/CanIf.obj' failed Command-line error #1046: invalid macro definition: ccs=ccs 1 catastrophic error detected in the compilation of "../communication/CanIf/CanIf.c". Compilation terminated. gmake: *** [communication/CanIf/CanIf.obj] Error 1 Building file: "../communication/Com/Com.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --check_misra="required" --preproc_with_compile --preproc_dependency="communication/Com/Com.d_raw" --obj_directory="communication/Com" "../communication/Com/Com.c" >> Compilation failure communication/Com/subdir_rules.mk:9: recipe for target 'communication/Com/Com.obj' failed Command-line error #1046: invalid macro definition: ccs=ccs 1 catastrophic error detected in the compilation of "../communication/Com/Com.c". Compilation terminated. gmake: *** [communication/Com/Com.obj] Error 1 Building file: "../communication/PduR/PduR.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --check_misra="required" --preproc_with_compile --preproc_dependency="communication/PduR/PduR.d_raw" --obj_directory="communication/PduR" "../communication/PduR/PduR.c" >> Compilation failure communication/PduR/subdir_rules.mk:9: recipe for target 'communication/PduR/PduR.obj' failed Command-line error #1046: invalid macro definition: ccs=ccs 1 catastrophic error detected in the compilation of "../communication/PduR/PduR.c". Compilation terminated. gmake: *** [communication/PduR/PduR.obj] Error 1 Building file: "../os/heap_2.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --check_misra="required" --preproc_with_compile --preproc_dependency="os/heap_2.d_raw" --obj_directory="os" "../os/heap_2.c" >> Compilation failure os/subdir_rules.mk:9: recipe for target 'os/heap_2.obj' failed Command-line error #1046: invalid macro definition: ccs=ccs 1 catastrophic error detected in the compilation of "../os/heap_2.c". Compilation terminated. gmake: *** [os/heap_2.obj] Error 1 Building file: "../os/port.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --check_misra="required" --preproc_with_compile --preproc_dependency="os/port.d_raw" --obj_directory="os" "../os/port.c" >> Compilation failure os/subdir_rules.mk:23: recipe for target 'os/port.obj' failed Command-line error #1046: invalid macro definition: ccs=ccs 1 catastrophic error detected in the compilation of "../os/port.c". Compilation terminated. gmake: *** [os/port.obj] Error 1 Building file: "../os/list.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --check_misra="required" --preproc_with_compile --preproc_dependency="os/list.d_raw" --obj_directory="os" "../os/list.c" >> Compilation failure os/subdir_rules.mk:16: recipe for target 'os/list.obj' failed Command-line error #1046: invalid macro definition: ccs=ccs 1 catastrophic error detected in the compilation of "../os/list.c". Compilation terminated. gmake: *** [os/list.obj] Error 1 Building file: "../os/queue.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --check_misra="required" --preproc_with_compile --preproc_dependency="os/queue.d_raw" --obj_directory="os" "../os/queue.c" >> Compilation failure os/subdir_rules.mk:37: recipe for target 'os/queue.obj' failed Command-line error #1046: invalid macro definition: ccs=ccs 1 catastrophic error detected in the compilation of "../os/queue.c". Compilation terminated. gmake: *** [os/queue.obj] Error 1 Building file: "../os/tasks.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --check_misra="required" --preproc_with_compile --preproc_dependency="os/tasks.d_raw" --obj_directory="os" "../os/tasks.c" >> Compilation failure os/subdir_rules.mk:44: recipe for target 'os/tasks.obj' failed Command-line error #1046: invalid macro definition: ccs=ccs 1 catastrophic error detected in the compilation of "../os/tasks.c". Compilation terminated. gmake: *** [os/tasks.obj] Error 1 Building file: "../os/timers.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --check_misra="required" --preproc_with_compile --preproc_dependency="os/timers.d_raw" --obj_directory="os" "../os/timers.c" >> Compilation failure os/subdir_rules.mk:51: recipe for target 'os/timers.obj' failed Command-line error #1046: invalid macro definition: ccs=ccs 1 catastrophic error detected in the compilation of "../os/timers.c". Compilation terminated. gmake: *** [os/timers.obj] Error 1 Building file: "../rte/rte.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --check_misra="required" --preproc_with_compile --preproc_dependency="rte/rte.d_raw" --obj_directory="rte" "../rte/rte.c" >> Compilation failure rte/subdir_rules.mk:9: recipe for target 'rte/rte.obj' failed Command-line error #1046: invalid macro definition: ccs=ccs 1 catastrophic error detected in the compilation of "../rte/rte.c". Compilation terminated. gmake: *** [rte/rte.obj] Error 1 gmake: Target 'all' not remade because of errors. **** Build Finished ****
**** Build of configuration Debug for project AutosarCanStack **** "C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 8 all -O Building file: "../tm4c123gh6pm_startup_ccs.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="tm4c123gh6pm_startup_ccs.d_raw" "../tm4c123gh6pm_startup_ccs.c" Finished building: "../tm4c123gh6pm_startup_ccs.c" Building file: "../InitConsole.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="InitConsole.d_raw" "../InitConsole.c" Finished building: "../InitConsole.c" Building file: "../arch/arm-cortexM4/drivers/Dio.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="arch/arm-cortexM4/drivers/Dio.d_raw" --obj_directory="arch/arm-cortexM4/drivers" "../arch/arm-cortexM4/drivers/Dio.c" Finished building: "../arch/arm-cortexM4/drivers/Dio.c" Building file: "../main.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c" Finished building: "../main.c" Building file: "../communication/CanIf/CanIf.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="communication/CanIf/CanIf.d_raw" --obj_directory="communication/CanIf" "../communication/CanIf/CanIf.c" Finished building: "../communication/CanIf/CanIf.c" Building file: "../communication/Com/Com.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="communication/Com/Com.d_raw" --obj_directory="communication/Com" "../communication/Com/Com.c" Finished building: "../communication/Com/Com.c" Building file: "../uartstdio.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="uartstdio.d_raw" "../uartstdio.c" Finished building: "../uartstdio.c" Building file: "../communication/PduR/PduR.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="communication/PduR/PduR.d_raw" --obj_directory="communication/PduR" "../communication/PduR/PduR.c" Finished building: "../communication/PduR/PduR.c" Building file: "../os/heap_2.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="os/heap_2.d_raw" --obj_directory="os" "../os/heap_2.c" Finished building: "../os/heap_2.c" Building file: "../os/portasm.asm" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="os/portasm.d_raw" --obj_directory="os" "../os/portasm.asm" Finished building: "../os/portasm.asm" Building file: "../os/list.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="os/list.d_raw" --obj_directory="os" "../os/list.c" Finished building: "../os/list.c" Building file: "../os/port.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="os/port.d_raw" --obj_directory="os" "../os/port.c" Finished building: "../os/port.c" Building file: "../arch/arm-cortexM4/drivers/Can.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="arch/arm-cortexM4/drivers/Can.d_raw" --obj_directory="arch/arm-cortexM4/drivers" "../arch/arm-cortexM4/drivers/Can.c" Finished building: "../arch/arm-cortexM4/drivers/Can.c" Building file: "../rte/rte.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="rte/rte.d_raw" --obj_directory="rte" "../rte/rte.c" Finished building: "../rte/rte.c" Building file: "../os/timers.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="os/timers.d_raw" --obj_directory="os" "../os/timers.c" Finished building: "../os/timers.c" Building file: "../os/queue.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="os/queue.d_raw" --obj_directory="os" "../os/queue.c" Finished building: "../os/queue.c" Building file: "../os/tasks.c" Invoking: ARM Compiler "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/Users/visitor/Documents/CODECOMPOSER 8/AutosarCanStack" --include_path="C:/ti/TivaWare_C_Series-2.1.4.178" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="os/tasks.d_raw" --obj_directory="os" "../os/tasks.c" Finished building: "../os/tasks.c" Building target: "AutosarCanStack.out" Invoking: ARM Linker "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -z -m"AutosarCanStack.map" --heap_size=0 --stack_size=512 -i"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/lib" -i"C:/ti/TivaWare_C_Series-2.1.4.178/driverlib/ccs/Debug" -i"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="AutosarCanStack_linkInfo.xml" --rom_model -o "AutosarCanStack.out" "./InitConsole.obj" "./main.obj" "./tm4c123gh6pm_startup_ccs.obj" "./uartstdio.obj" "./arch/arm-cortexM4/drivers/Can.obj" "./arch/arm-cortexM4/drivers/Dio.obj" "./communication/CanIf/CanIf.obj" "./communication/Com/Com.obj" "./communication/PduR/PduR.obj" "./os/heap_2.obj" "./os/list.obj" "./os/port.obj" "./os/portasm.obj" "./os/queue.obj" "./os/tasks.obj" "./os/timers.obj" "./rte/rte.obj" "../tm4c123gh6pm.cmd" -llibc.a -l"C:/ti/TivaWare_C_Series-2.1.4.178/driverlib/ccs/Debug/driverlib.lib" <Linking> Finished building target: "AutosarCanStack.out" **** Build Finished ****
Thank you for providing the build logs. This is unfortunately a bug in the version of compiler tools you are using. Please take a look at this related thread.
In your case if you change the define in the compiler options to:
--define=ccs=\"ccs\"
it should then report the MISRA warnings as expected.
Thanks AartiG,
could you tell me how to change -in steps- the define in the compiler options , please ?
Regards,
Sarea