Skip to main content
doebber2
Associate II
December 9, 2016
Solved

STM32F4 Standby Mode greater than 36 hours

  • December 9, 2016
  • 1 reply
  • 750 views
Posted on December 09, 2016 at 13:01

Hi!

I want to put my STM32F4 in StandBy mode for more then 36 hours.

At the moment I use the RTC wakeup interrupt but the maximum time is 0x1FFFF seconds (36 hours).

Is this possible to set a greater value?

regards Marc

    This topic has been closed for replies.
    Best answer by Lawliet KG
    Posted on December 09, 2016 at 19:47

    Dear Marc,

    The wakeup unit clock is configured through the WUCKSEL[2:0] bits of RTC_CR register.

    Three different configurations are possible:

                  â—� Configuration 1: WUCKSEL[2:0] = 0xxb for short wakeup periods

                  â—� Configuration 2: WUCKSEL[2:0] = 10xb for medium wakeup periods

                  â—� Configuration 3: WUCKSEL[2:0] = 11xb for long wakeup periods

    The maximum interrupt time provided by configuration 2 is 131072 seconds (a little bit more than 36h), so you should use configuration3. This configuration enables the MCU to wake up from the standby mode with a maximum delay of 4194304 s (more than 48 days).

    All those information are already available on the application note AN3371.

    Wish this could help you.

    If this answers your request, please press 'correct' 

    :)

    .

    Best regards,

    Lawliet.

    .

    1 reply

    Lawliet KG
    Lawliet KGBest answer
    Visitor II
    December 9, 2016
    Posted on December 09, 2016 at 19:47

    Dear Marc,

    The wakeup unit clock is configured through the WUCKSEL[2:0] bits of RTC_CR register.

    Three different configurations are possible:

                  â—� Configuration 1: WUCKSEL[2:0] = 0xxb for short wakeup periods

                  â—� Configuration 2: WUCKSEL[2:0] = 10xb for medium wakeup periods

                  â—� Configuration 3: WUCKSEL[2:0] = 11xb for long wakeup periods

    The maximum interrupt time provided by configuration 2 is 131072 seconds (a little bit more than 36h), so you should use configuration3. This configuration enables the MCU to wake up from the standby mode with a maximum delay of 4194304 s (more than 48 days).

    All those information are already available on the application note AN3371.

    Wish this could help you.

    If this answers your request, please press 'correct' 

    :)

    .

    Best regards,

    Lawliet.

    .