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.

notification.c created by HALCoGen 04.05.02 for a TMS570LS20216SPGE fails to compile

Other Parts Discussed in Thread: HALCOGEN

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.

  • Hi Chester,
    I can't seem to produce your error. I use 0.4.0.5.02. If I only have CAN1 in the Driver Enable tab, I will get both the esm.h and can.h included in the notification.c. I also try to enable/disable the CAN interrupt in the VIM Channel 0-31 tab and still see can.h included. I don't see compilation error. Can you please send the dil and hcg files? I will ask the HalCoGen team to look at it too.
  • Hi Chester,
    Sorry, I understand what you meant now. I thought you tried to enable CAN1 in the driver tab and not finding the can.h included. Now I only enable RTI and GIO tab and I do see the problem with the notification.c. It looks like the canStatusChangeNotification() is causing the problem without the can.h. I will ask the HalCoGen to look into this. Thanks for reporting.