if (RCC_GetFlagStatus(RCC_FLAG_WWDGRST) != RESET) { RCC_ClearFlag(); } WWDG_DeInit();
RCC_APB1PeriphClockCmd(RCC_APB1Periph_WWDG, ENABLE);
WWDG_SetPrescaler(WWDG_Prescaler_8);
WWDG_SetWindowValue(68);
WWDG_Enable(127);
WWDG_ClearFlag();
PCLK1为36MHZ,结果一执行WWDG_Enable()就复位,WWDG_ClearFlag()的断点就没停住过. 请各位帮忙分析一下,WWDG一使能就复位的原因? |