When used HALCoGen 04.05.02 to create a project for a TMS570LS20216SPGE, the generated notification.c failed to compile:
'Building file: ../source/notification.c' 'Invoking: ARM Compiler' "C:/ti_ccs6_1_3/ccsv6/tools/compiler/arm_15.12.3.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/ti_ccs6_1_3/ccsv6/tools/compiler/arm_15.12.3.LTS/include" --include_path="C:/Users/Mr_Halfword/workspace_v6_1_3/TMS570LS20216_rti_blinky/include" -g --diag_wrap=off --diag_warning=225 --display_error_number --abi=eabi --enum_type=packed --preproc_with_compile --preproc_dependency="source/notification.d" --obj_directory="source" "../source/notification.c" >> Compilation failure source/subdir_rules.mk:21: recipe for target 'source/notification.obj' failed "../source/notification.c", line 105: error #20: identifier "canBASE_t" is undefined 1 error detected in the compilation of "../source/notification.c". gmake: *** [source/notification.obj] Error 1 gmake: Target 'all' not remade because of errors.
To prevent the compilation error, can.h was included in the notification.c file inside USER CODE blocks:
/* USER CODE BEGIN (0) */ #include "can.h" /* USER CODE END */
The only drivers enabled in the HALCoGen project were the RTI driver and GIO driver.