stack overflow or stack underflow error

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

stack overflow or stack underflow error

738 次查看
smt87
Contributor II

Hi,

I am using S32k116 micro controller. For safety control I have a notification in case of stack overflow or stack underflow error. In safety document implementation hint is that It is possible to to use the data watchpoint comparator in DWT to trigger a debug monitor exception on stack overflow and underflow.

What does it means actually and how can i control these error status?

0 项奖励
3 回复数

713 次查看
JRoberto
NXP TechSupport
NXP TechSupport

Hello @smt87 

This article explains how to debug with Watchpoints. Kindly take a look at:
Watchpoint with S32 Design Studio for S32 Platform... - NXP Community

Best Regards!

0 项奖励

706 次查看
smt87
Contributor II

Hi

Actually, I want to use MTB_DWT register for stack overflow and underflow errors in my code. My question is how i can use this register and adopt it to my code.

0 项奖励

691 次查看
JRoberto
NXP TechSupport
NXP TechSupport

Sadly it seems that this can not be done on the S32k11X. Check this thread.

https://community.nxp.com/t5/S32K/Example-of-DWT-for-stack-usage-monitoring-on-S32K1xx/m-p/1160990#

0 项奖励