Kinetis KL16 watchdog does not start

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Kinetis KL16 watchdog does not start

944件の閲覧回数
东伸韩
Contributor I

Written using SDKV2.2, in accordance with the API manual prepared by the initialization watchdog code, the main program to join the feed dog code, add a long delay before feeding the dog ,feed dog code jump over did not actually restart, The clock is also set in LPO mode.Does the watchdog's SDK2.2 API support KL16?

 

void WDOG_Init(void)
{
cop_config_t config;
COP_GetDefaultConfig(&config);
config.timeoutCycles = kCOP_2Power8CyclesOr2Power16Cycles;
COP_Init(SIM,&config);

 

}

 

 

int main(void) {
/* Init board hardware. */
BOARD_InitBootPins();
BOARD_InitBootClocks();
BOARD_InitDebugConsole();
WDOG_Init();

COP_Refresh(SIM);
GPIO_WritePinOutput(BOARD_INITPINS_LED1_GPIO,BOARD_INITPINS_LED1_GPIO_PIN ,1);
delay_ms(2000);

 

COP_Refresh(SIM);

GPIO_WritePinOutput(BOARD_INITPINS_LED1_GPIO,BOARD_INITPINS_LED1_GPIO_PIN ,0);
delay_ms(1500);
COP_Refresh(SIM);

/* Add your code here */

// for(;;) { /* Infinite loop to avoid leaving the main function */
// __asm("NOP"); /* something to use as a breakpoint stop while looping */
// }
}

0 件の賞賛
返信
1 返信

750件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi,

the default timeout mode is long time out. It will wait 2^16 cycle till watchdog reset. So please change it to short timeout mode.

Regards

jing

0 件の賞賛
返信