K32L2B21: Watchdog timer example

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

K32L2B21: Watchdog timer example

1,414 Views
nre
Contributor II

Hi,
I tried to use the example code from the SDK for testing the watchdog timer.
The terminal is active so I can see that "COP example start!" and "COP refresh %d time" prints are visualized, then the code enters infinite loop at the end of the example, but the expected microcontroller reset never occurs!
I am using CPU_K32L2B31VLH0A directive and my evolution board is FRDM-K32L2B3

What could be the reason that WDT never resets?


My default example config is:
* configCop.enableWindowMode = false;
* configCop.timeoutMode = kCOP_LongTimeoutMode;
* configCop.enableStop = false;
* configCop.enableDebug = false;
* configCop.clockSource = kCOP_LpoClock;
* configCop.timeoutCycles = kCOP_2Power10CyclesOr2Power18Cycles;
but i also tried with configCop.timeoutCycles = kCOP_2Power5CyclesOr2Power13Cycles; also without successful WDT resets.

My Defined symbols are:
DEBUG (tried also without this define)
CPU_K32L2B31VLH0A
DISABLE_WDOG=0
FRDM_K32L2B
FREEDOM

0 Kudos
3 Replies

1,401 Views
FelipeGarcia
NXP Employee
NXP Employee

Hi,

So you mean you tried the example with no modifications and it does not work, correct?

Could you please let me know what is the SDK version you are using?

Best regards,

Felipe

0 Kudos

1,385 Views
nre
Contributor II

Sure, I'm using SDK_2.9.0_K32L2B21xxxxA

0 Kudos

1,375 Views
FelipeGarcia
NXP Employee
NXP Employee

Hi,

I used MCUXpresso SDK 2.10.0 for same board as you (FRDM-K32L2B3) and the cop example worked correctly, please check snippet below.

FelipeGarcia_1-1630604852286.png

Best regards,

Felipe

0 Kudos