MTB_DWT stack monitoring

cancel
Showing results for 
Search instead for 
Did you mean: 

MTB_DWT stack monitoring

67 Views
smt87
Contributor II

Hi,

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

0 Kudos
1 Reply

55 Views
JRoberto
NXP Employee
NXP Employee

Hi @smt87 

Unfortunately, the S32k1XX's core can't access these registers. The registers can be accessed via DAP by the debugger only.

Please refer to this thread for more details.
https://community.nxp.com/t5/S32K/Example-of-DWT-for-stack-usage-monitoring-on-S32K1xx/m-p/1160990#

I'm sorry for the inconvenient this may cause.

0 Kudos