Dummy freertos task mcuxpresso debugging with segger

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dummy freertos task mcuxpresso debugging with segger

1,210 Views
ypkdani
Contributor III

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:

pastedImage_1.png

but in the debug windows i see this:

pastedImage_3.png

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

3 Replies

913 Views
BlackNight
NXP Employee
NXP Employee

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

913 Views
BlackNight
NXP Employee
NXP Employee

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

913 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Daniele,

Does the same happens when using MCUXpresso IDE 10.2? This version comes with several FreeRTOS TAD plugin  v1.0.4 updates:

https://community.nxp.com/community/mcuxpresso/mcuxpresso-ide/blog/2018/05/18/mcuxpresso-ide-v1020-n... 


Hope it helps!

Best Regards,
Carlos Mendoza
Technical Support Engineer

0 Kudos