sevenchen 发表于 2018-12-28 15:10:34

stm32l053 RTC闹钟设置


    /* In case of interrupt mode is used, the interrupt source must disabled */
    __HAL_RTC_ALARM_DISABLE_IT(hrtc, RTC_IT_ALRA);

    tickstart = HAL_GetTick();

    /* Wait till RTC ALRxWF flag is set and if Time out is reached exit */
    while(__HAL_RTC_ALARM_GET_FLAG(hrtc, RTC_FLAG_ALRAWF) == RESET)

我想请教下各位,在什么条件下 RTC_FLAG_ALRAWF不会置位,如果会就可以说明死机问题了,我模拟不出来什么情况会。。。。

sevenchen 发表于 2018-12-28 15:32:04

有人看 没人回吗?

我不怕2106 发表于 2018-12-28 16:43:08

帮顶,还没用到过这方面

toofree 发表于 2018-12-29 00:50:16

似乎与RTC_CR寄存器的ALRAE位有关


页: [1]
查看完整版本: stm32l053 RTC闹钟设置