How to monitor CPU/Stack/Memory

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to monitor CPU/Stack/Memory

跳至解决方案
2,609 次查看
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 项奖励
回复
1 解答
2,605 次查看
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 项奖励
回复
1 回复
2,606 次查看
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 项奖励
回复