Hi @Senlent,
Thank you for the prompt answer.
Taking a step back for a moment...
I'm using Design Studio for ARM version 2.2 and the SDK/development packages are version 2.2.
When checking for updates in the IDE, these appear to both be the most current.
However, the functions contained within, ie: `WDOG_DRV_Init()` does not appear to write the correct register values to enable and unlock the WDOG:
WDOG -> CNT = 0xD928C520; // Unlock
WDOG -> CS = 0x00002100; // Enable
It's not in the autogen file that goes into `Generated_Code`, from the GUI configuration either.
The functions work for the most part, but this portions need to be done manually, and the headers for the WDOG API mention 2015 which seems to pre-date the S32K lineup entirely.
On that note, even when I enable the debug mode for WDOG, I can never see the `ULK (bit11)` toggle to 1... indicating the WDOG is unlocked. However, it does seem to work when I flash the code onto the board.
I guess the questions in part are:
- Should I be able to just use the SDK API for the S32K146 to implement the WDOG?
- Is it possible to debug the WDOG in full, in debug mode?
Please share any other ideas and thoughts you have as well.
Thank you.