Skip to main content
ANalb.1
Associate
April 12, 2023
Solved

Bugs in the stm32wlxx_hal_rtc.c file.

  • April 12, 2023
  • 3 replies
  • 1220 views

In my opinion there are two bugs HAL_RTC_SetTime(..) (p. 776) and HAL_RTC_GetTime(..) (p. 881).

/* Check Binary mode ((32-bit free-running counter) */

if (READ_BIT(RTC->ICSR, RTC_ICSR_BIN) != RTC_BINARY_ONLY)

should be RTC_BINARY_ONLY instead of RTC_BINARY_NONE.

This topic has been closed for replies.
Best answer by Imen.D

Hello @ANalb.1​ and welcome to the Community :)

The latest version of STM32CubeWL v1.3.0 contains this line:

 /* Check Binary mode ((32-bit free-running counter) */
 if (READ_BIT(RTC->ICSR, RTC_ICSR_BIN) != RTC_BINARY_ONLY)

Imen

3 replies

Imen.DBest answer
ST Technical Moderator
April 12, 2023

Hello @ANalb.1​ and welcome to the Community :)

The latest version of STM32CubeWL v1.3.0 contains this line:

 /* Check Binary mode ((32-bit free-running counter) */
 if (READ_BIT(RTC->ICSR, RTC_ICSR_BIN) != RTC_BINARY_ONLY)

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
ANalb.1
ANalb.1Author
Associate
April 13, 2023

Sorry

ST Technical Moderator
April 13, 2023

If you are satisfied of my answer, please mark it as "Best" by choosing Select as Best, so that this thread will be marked as solved.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks