Dear Officer,
Can we have a application/code example for DWT (Debug Watchpoint and Trace) for stacking over/underflow detection on S32K1xx platform?
Thanks and best regards
He Wei
Solved! Go to Solution.
Dear He Wei,
The S32K11x DWT module is not accessible by the core, unfortunately.
Please read this thread: DWT on S32K11x
https://community.nxp.com/t5/S32K/DWT-on-S32K11x/m-p/960401
Regarding the asm, please create a new thread in
https://community.nxp.com/t5/S32-Design-Studio/bd-p/s32ds
Thank you,
BR, Daniel
Hello He Wei,
You can find an example here:
Best regards,
Daniel
Dear Daniel,
Thanks lot for this useful information. I try to port it on my S32K118 board but notice the numComp (number of comparators) is 0, so this DWT is not supported for S32K118?
And the below code will give a compilation error:
register uint32_t* stackPointer asm("sp");
register uint32_t reg0 asm("r0");
I need to modify as below to pass the compilation.
register uint32_t* stackPointer __asm("sp");
register uint32_t reg0 __asm("r0");
Is this modification OK?
Thanks and best regards
He Wei
Dear He Wei,
The S32K11x DWT module is not accessible by the core, unfortunately.
Please read this thread: DWT on S32K11x
https://community.nxp.com/t5/S32K/DWT-on-S32K11x/m-p/960401
Regarding the asm, please create a new thread in
https://community.nxp.com/t5/S32-Design-Studio/bd-p/s32ds
Thank you,
BR, Daniel
Dear Daniel,
Tks for the great support.
BR
He Wei