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.

TMS570LS0914: CAN boot loader problem when using freeRTOS

Part Number: TMS570LS0914
Other Parts Discussed in Thread: HALCOGEN

Hello,

I've started to work on CAN boot loader for TMS570LS0914. The boot loader is working fine with a single application witch doesn't run on freeRTOS. When I use freeRTOS the application doesn't start at all, so I started to look for a solution. Based on tms570ls20212 custom bootloader and freertos thread, I modified my code, but than there were other problems, my boot loader code stuck here in the startup code:

if ((esmREG->SR1[2]) != 0U)
{
/* USER CODE BEGIN (24) */
/* USER CODE END */
/*SAFETYMCUSW 5 C MR:NA <APPROVED> "for(;;) can be removed by adding "# if 0" and "# endif" in the user codes above and below" */
/*SAFETYMCUSW 26 S MR:NA <APPROVED> "for(;;) can be removed by adding "# if 0" and "# endif" in the user codes above and below" */
/*SAFETYMCUSW 28 D MR:NA <APPROVED> "for(;;) can be removed by adding "# if 0" and "# endif" in the user codes above and below" */
 for(;;)

{

}/* Wait */
/* USER CODE BEGIN (25) */
/* USER CODE END */
}

When I removed this for loop, than I could use a simple led blink program with freeRTOS, but when I tried to upload our product code, than only the led blinking task worked, but that was at least ten times slower. 

Thank you!

Kind regards,

Keno