Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
I have inherited an existing project that was generated a while ago and I am trying to recreate it from scratch so I can understand the halcogen settings correctly.
(Project generated for TMS570LC4357ZWT_FREERTOS)
When halcogen generates code for this project, I get code such as (in HL_pinmux.c)
void muxInit(void){
/* USER CODE BEGIN (1) */
/* USER CODE END */
/* Enable Pin Muxing */
pinMuxReg->KICKER0 = 0x83E70B13U;
pinMuxReg->KICKER1 = 0x95A4F1E0U;
/* USER CODE BEGIN (2) */
/* USER CODE END */
pinMuxReg->PINMUX[0] = PINMUX_BALL_N19_ | PINMUX_BALL_D4_EMIF_ADDR_00 | PINMUX_BALL_D5_EMIF_ADDR_01 | PINMUX_BALL_C4_EMIF_ADDR_06;
Notice the incomplete PINMUX_BALL_N19_ without any assigned function such as AD1EVT etc.
Obviously, this causes compile errors such as:
>> Compilation failure
app/halcogen/source/subdir_rules.mk:9: recipe for target 'app/halcogen/source/HL_pinmux.obj' failed
"../app/halcogen/source/HL_pinmux.c", line 236: error #20: identifier "PINMUX_BALL_N19_" is undefined
"../app/halcogen/source/HL_pinmux.c", line 278: error #20: identifier "PINMUX_BALL_F3_" is undefined
"../app/halcogen/source/HL_pinmux.c", line 282: error #20: identifier "PINMUX_BALL_B2_" is undefined
"../app/halcogen/source/HL_pinmux.c", line 294: error #20: identifier "PINMUX_BALL_B12_" is undefined
"../app/halcogen/source/HL_pinmux.c", line 310: error #20: identifier "PINMUX_BALL_N3_" is undefined
5 errors detected in the compilation of "../app/halcogen/source/HL_pinmux.c".
gmake: *** [app/halcogen/source/HL_pinmux.obj] Error 1
Why is halcogen generating invalid code? There are no conflicts listed under Pin Muxing in the halcogen PINMUX tab.
How do I resolve this?
Thank you
Subu