FreeRTOS replacement for _klog_get_task_stack_usage and _klog_get_interrupt_stack_usage

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

FreeRTOS replacement for _klog_get_task_stack_usage and _klog_get_interrupt_stack_usage

391 Views
MattJCole
Contributor V

 

I am currently migrating from the Kinetis K65 to the MPC5748G processor and need a replacement for the _klog_get_task_stack_usage(  _mem_size_ptr stack_size_ptr,   _mem_size_ptr stack_used_ptr) and _klog_get_interrupt_stack_usage(  _mem_size_ptr stack_size_ptr,   _mem_size_ptr stack_used_ptr)  functions. I found the uxTaskGetStackHighWaterMark function but that only gives me how much memory the stack used. How do I find out stack size for a task?

Tags (1)
0 Kudos
1 Reply

381 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Matt,

take a look at:

https://www.freertos.org/FAQMem.html#StackSize

Regards,

Lukas

0 Kudos