Skip to main content
wuio
Associate III
March 1, 2019
Question

STM32G071RB INIT bit in ICSR RTC reg

  • March 1, 2019
  • 4 replies
  • 1178 views

hello, after configuring the rtc in the cube the clock does not start. The initialization procedure calls the error handler. I checked that the RTC_EnterInitMode function is a problem. The INIT bit in the ICSR register is not set. Rule SET_BIT (hrtc-> Instance-> ICSR, RTC_ICSR_INIT); did not work. What could be the reason?

This topic has been closed for replies.

4 replies

waclawek.jan
Super User
March 6, 2019

PWR_CR1.DBP not being set?

JW

wuio
wuioAuthor
Associate III
March 7, 2019

I checked this bit and it is set before the initialization. Do you have maybe STM32G071 and could you check if you are running RTC?

allard
Senior
March 27, 2019
waclawek.jan
Super User
March 27, 2019

Indeed, the G0 has a RCC_APBENR1.RTCAPBEN bit, this is not present in any other family AFAIK.

[EDIT]

The older 'F74x does not have it, but the 'F767 does. Similarly, in the 'L4xx subfamily, the oldest 'L476 does not have it. It's also in the 'H7. In some models it is by default set, in others it is not.

JW