Skip to main content
wuio
Associate III
Mar 1, 2019 1:59 PM UTC
Question

STM32G071RB INIT bit in ICSR RTC reg

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
Mar 6, 2019 3:17 PM UTC

PWR_CR1.DBP not being set?

JW

wuio
wuioAuthor
Associate III
Mar 7, 2019 9:17 AM UTC

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?

waclawek.jan
Super User
Mar 27, 2019 11:44 AM UTC

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