I did modify the WDT example to generate a warning interrupt before the CPU is reseted but i couldn't get the GREEN led on or that the interrupt is called before the WTD resets the CPU.
The warning is configured for 2 second and the timeout with 6 seconds.
config.timeoutValue = wdtFreq * 6;
config.warningValue = wdtFreq * 2;
If i disable the reset then the interrupt was called after 6 seconds with the warning flag set instead of the timeout flag.
Can anyone help me here with this problem?