How to monitor CPU/Stack/Memory

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

How to monitor CPU/Stack/Memory

Jump to solution
1,467 Views
leekate-b45752
NXP Employee
NXP Employee

Hello, 

How can I check the CPU load, Stack/Memory usage on S32DS for ARM v2.2 or v3.3?

If it could be measured quantitatively, CPU load especially, is it possible to monitor during debug mode?

Best regards,

Kate Lee

0 Kudos
1 Solution
1,463 Views
jiri_kral
NXP Employee
NXP Employee

Hi Kate, 

it depends on app running on MCU. If you are using for example FreeRTOS, for CPU load you can use Idle task hook. Also used stack memory is available. 

 

If it is app without OS, I'm afraid that customer needs to write his own functions for CPU load monitoring and some kind of memory management. As far as I know, there is no HW support for that on S32K1xx (assuming that question is related to this MCU). 

 

BR, 

Jiri 

View solution in original post

0 Kudos
1 Reply
1,464 Views
jiri_kral
NXP Employee
NXP Employee

Hi Kate, 

it depends on app running on MCU. If you are using for example FreeRTOS, for CPU load you can use Idle task hook. Also used stack memory is available. 

 

If it is app without OS, I'm afraid that customer needs to write his own functions for CPU load monitoring and some kind of memory management. As far as I know, there is no HW support for that on S32K1xx (assuming that question is related to this MCU). 

 

BR, 

Jiri 

0 Kudos