STM32L053 使用STM32CUBE RTC功能问题?
在用STM32Cube配置STM32L053 RTC功能时,在 HAL_RTC_GetTime(&hrtc, &stimestructureget, FORMAT_BIN);后必须要加HAL_RTC_GetDate(&hrtc, &sdatestructureget, FORMAT_BIN);不然时间都是乱的呢?知道的说下、、谢谢!
已找到原因,
* @note Call HAL_RTC_GetDate() after HAL_RTC_GetTime() to unlock the values
* in the higher-order calendar shadow registers.
帮顶 学习了:D 不错,学习了
页:
[1]