K32L2B21: Watchdog timer example

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

K32L2B21: Watchdog timer example

2,644 次查看
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 项奖励
回复
3 回复数

2,631 次查看
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 项奖励
回复

2,615 次查看
nre
Contributor II

Sure, I'm using SDK_2.9.0_K32L2B21xxxxA

0 项奖励
回复

2,605 次查看
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 项奖励
回复