Skip to main content
Visitor II
April 17, 2024
Solved

RTOS: Sleep mode (Is there aany Way to use SLEEP MODE in STM32F411CEU6)?

  • April 17, 2024
  • 3 replies
  • 2055 views

Helllo Frends,

I am workin on FreeRTOS with STM32f411CEU6 Blackpill. 

In this I am facing issue with using sleep mode because there is no pin LPTIM1 in the section of TIMERS.
I tryed bothe of them CMSIS_V1 and CMSIS_V2. 

Is there aany Way to use SLEEP MODE

Kai_Satone_2-1713341270455.png

 

Kai_Satone_1-1713341236690.png

 

Kai_Satone_0-1713341140944.png

 

    This topic has been closed for replies.
    Best answer by Andrew Neil

    Use one of the timers which is available!

    RTC might be an option?

    The FreeRTOS documentation should cover this...

    3 replies

    Super User
    April 17, 2024

    @Kai_Satone wrote:

     STM32f411CEU6 ... there is no pin LPTIM1 in the section of TIMERS.


    That chip doesn't have an LPTIM1 timer:

    AndrewNeil_0-1713342553372.png

     


    @Kai_Satone wrote:

     Blackpill. 


    Beware that many of the "pill" boards have fake STM32s

     

    Visitor II
    April 17, 2024

    Im hopin that there is any other way to usee sleep mode in RTOS

    Super User
    April 17, 2024

    Use one of the timers which is available!

    RTC might be an option?

    The FreeRTOS documentation should cover this...

    ST Employee
    April 17, 2024

    Hello @Kai_Satone

    To reach stop modes you can use LPTIM or RTC clocked by LSE... typically, the RTC has a resolution of 1 sec, which is inappropriate for most cases. it is mostly used in deeper sleep modes and not in sleep mode.  

    I would as well suggest upgrading to another STM32 as @Andrew Neil said the blackpills are mostly fake!

    There are quite range of affordable Nucleo boards with LPTIM, for instance you can choose a NucleoL0 or L4 

     

    Super User
    April 17, 2024

    @Sarra.S wrote:

    typically, the RTC has a resolution of 1 sec, which is inappropriate for most cases.


    The "sub-seconds" might be usable ...

    Super User
    April 17, 2024