wqy1103 发表于 2015-10-8 15:58:46

STM32L053 使用STM32CUBE RTC功能问题?

在用STM32Cube配置STM32L053 RTC功能时,在 HAL_RTC_GetTime(&hrtc, &stimestructureget, FORMAT_BIN);后必须要加HAL_RTC_GetDate(&hrtc, &sdatestructureget, FORMAT_BIN);不然时间都是乱的呢?



知道的说下、、谢谢!

wqy1103 发表于 2015-10-8 16:18:32

已找到原因,
* @note   Call HAL_RTC_GetDate() after HAL_RTC_GetTime() to unlock the values
*            in the higher-order calendar shadow registers.

你好我好大家好! 发表于 2015-10-8 16:54:20

帮顶         

lkl0305 发表于 2015-10-8 23:41:28

学习了:D

JackieLaura 发表于 2015-10-9 09:58:09

不错,学习了
页: [1]
查看完整版本: STM32L053 使用STM32CUBE RTC功能问题?