Hi @ktbalazs
Welcome to use the NXP kinetis product, I would like to provide service for you.
For your question: For testing, I take a while(1); into the code to test the WDG. The reset happens, but the program does not boot or stays in reset.
In fact, after you enable the WDOG, you need to feed the dog in period, the period should smaller than the watchdog timeout time, otherwise, the code will reset by the WDOG, you can't see it boot, becuase your WDOG is always booting.
So you need to feed the dog(refresh) in the while(1), or you can disable the Watchdog, please note, after reset, the watchdog register enable bit just can be configure once, other directly write is no usage.
So, if you want to start with the watchdog enabled, you need to refresh the watchdog before it is timeout.
The watchdog example has the refresh code, you can use it.
Wish it helps you!
If you still have questions about it, please kindly let me know.
Best Regards,
Kerry