Skip to main content
er3481
Associate III
December 11, 2016
Question

stm32f429 register value edit

  • December 11, 2016
  • 1 reply
  • 762 views
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??

    This topic has been closed for replies.

    1 reply

    Arnold Bischof
    Associate III
    December 11, 2016
    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.

    er3481
    er3481Author
    Associate III
    December 12, 2016
    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.