AnsweredAssumed Answered

watchdog on KM34Z why does not work?

Question asked by Manfred Eggersdorf on Jul 19, 2017
Latest reply on Jul 30, 2017 by Kerry Zhou

Hello,

I want to use the watchdog on MKM34Z256 and tried code like that:

 

*************

     PRINTF("RESET");

    WDOG_GetDefaultConfig(&config);
    config.clockSource = kWDOG_LpoClockSource;

    config.prescaler = kWDOG_ClockPrescalerDivide1;
    config.enableUpdate = true;
    config.enableInterrupt = false;
   config.enableWindowMode = false;
    config.timeoutValue = 0x7ffU;
    WDOG_Init(wdog_base,&config);

 

    WDOG_Refresh(wdog_base);
    while(1)
    {
        WDG_Timer = GetTimerOutputValue(wdog_base);

 

        PRINTF(" %d", WDG_Timer);
        WaitLoop(3500000);
    }

*************

Normally I would suggest, that the I would receive via UART something like that:

 

RESET 0 1 2 3 4

...

2047

RESET 0 1 2...

 

but I only get

RESET 0 0 0 0 0... and no Watchdog Reset.

Does that mean that the Watchdog has no Clock?

Must I Enable the LPO in a different way?

 

Thank You!

With best regards

Manfred

Outcomes