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.
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.