Hello,
i have mcuxpresso 10.1.1 and i need to debug a freertos. I have enable the GDBServer/RTOSPlugin_FreeRTOS for debug my tasks using a segger jlink edu. What's happen is this:
I have this tasks:
but in the debug windows i see this:
why i have the thread 9 and 10 with those names? In my code those are not created and i see those after i call the function
if (xTaskCreate((TaskFunction_t)task_LCD, // pointer to the task
(char const *) "lcd task", // task name for kernel awareness debugging
2048L / sizeof(portSTACK_TYPE), // task stack size
NULL, // optional task startup argument
TASK_LCD_P, // initial priority
&tasks.taskhandle.taskLCD // optional task handle to create
) != pdPASS) {
return;
}
before all works fine.
Thanks
Hi Daniele,
I can confirm that the issue is with a large stack size for FreeRTOS tasks. I have submited the issue to SEGGER so hopefully they will be able to fix it in a next release of their software.
I hope this helps,
Erich
Hi Daniele,
I think your stack size of 2048L is by far too huge (that will be 2048*4 bytes). Give it a try say with a value or 256.
I hope this helps,
Erich
Hi Daniele,
Does the same happens when using MCUXpresso IDE 10.2? This version comes with several FreeRTOS TAD plugin v1.0.4 updates:
Hope it helps!
Best Regards,
Carlos Mendoza
Technical Support Engineer