stack overflow or stack underflow error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

stack overflow or stack underflow error

712件の閲覧回数
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 返答(返信)

687件の閲覧回数
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 件の賞賛

680件の閲覧回数
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 件の賞賛

665件の閲覧回数
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 件の賞賛