In MCUXpresso with FreeRTOS, how can I view each task's call stack?

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

In MCUXpresso with FreeRTOS, how can I view each task's call stack?

Jump to solution
1,688 Views
bgraham
Contributor IV

MCUXpresso IDE v10.2.1 [Build 795] [2018-07-25]
(c) Copyright NXP Semiconductors 2006-18. All rights reserved.

OS: Windows 7, v.6.1, x86 / win32

MKL26z256

My app has a 3 FreeRTOS tasks.

After halting the MCU, the current task's stack is displayed in the Debug window.

How can I view the call stacks of the other tasks?

Thanks,

Bruce

0 Kudos
1 Solution
1,422 Views
BlackNight
NXP Employee
NXP Employee

Hi Bruce,

this depends to some extend to the debug connection/probe you are using.

Have a look

Troubleshooting Tips for FreeRTOS Thread Aware Debugging in Eclipse | MCU on Eclipse 

and

Better FreeRTOS Debugging in Eclipse | MCU on Eclipse 

For the LinkServer/CMSIS-DAP connection make sure you are in 'All-Stop' mode (as outlined above). You can change the mode as described in following article: GDB All-Stop and Non-Stop Mode with LinkServer | MCU on Eclipse 

I hope this helps,

Erich

View solution in original post

2 Replies
1,423 Views
BlackNight
NXP Employee
NXP Employee

Hi Bruce,

this depends to some extend to the debug connection/probe you are using.

Have a look

Troubleshooting Tips for FreeRTOS Thread Aware Debugging in Eclipse | MCU on Eclipse 

and

Better FreeRTOS Debugging in Eclipse | MCU on Eclipse 

For the LinkServer/CMSIS-DAP connection make sure you are in 'All-Stop' mode (as outlined above). You can change the mode as described in following article: GDB All-Stop and Non-Stop Mode with LinkServer | MCU on Eclipse 

I hope this helps,

Erich

1,422 Views
bgraham
Contributor IV

I set the debugger setting to "Select RTOS plugin".

It did not work the first time because MCUXpresso crashed and did not save the setting.

After re-checking the option, it works great!

Thanks.

0 Kudos