cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f429 register value edit

er3481
Senior
Posted on December 11, 2016 at 13:44

Hi,

I want to change the RTC->ISR register value but i could not change it (RTC->ISR = 0xFFFFFFFF etc...). Besides i can change TIM4->CCR1 value. Why rtc register value can not be chaged? Any advise??

2 REPLIES 2
Arnold Bischof
Associate III
Posted on December 11, 2016 at 19:37

hello eb3484,

seems that RTC clock is not enabled or write protection is enabled.

make sure clock is enabled within 

/* Peripheral clock enable */

__HAL_RCC_RTC_ENABLE();

make sure write protection is disbaled within

 /* Disable the write protection for RTC registers */

  __HAL_RTC_WRITEPROTECTION_DISABLE(hrtc);

regards A.B.

Posted on December 12, 2016 at 18:29

hi,

as a matter i want to control the alarm flag ALRAF to set it to '1'. Because in my circuit, i set the clock manually with buttons, and when i use the set time function, the rtc alarm interrupts stops suddenly, and it continues to work when the second of the clock changes from 59 to 0. I couldn't understand its reason, but i think, if i change the rtc alarm flag in RTC->ISR register, maybe it contuniues to work.