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