Hi All
HALCoGen 4.03.00 has a minor bug in the generated HL_sys_startup.c file for TMS570LC4357 and RM57x devices. The HALCoGen Engine template has an extra #endif. "unmatched #endif when generating for TMS570LC4357 and RM57x device.
HALCoGen team will roll out a patch release with the fix. Sorry for the inconvenience.
Workaround 1 ( Recommended) :
1) Open : C:\ti\Hercules\HALCoGen\v04.03.00\drivers\TMS570LC4357ZWT\SYSTEM570v000\sys_startup.c
2) Remove #endif at line no 94 ( Just above /* USER CODE BEGIN (3) */)
Workaround 2 :
1) In the generated code HL_sys_startup.c add a #if 1 inside /* USER CODE BEGIN (2) */ like below
/* USER CODE BEGIN (2) */
#if 1
/* USER CODE END */