cancel
Showing results for 
Search instead for 
Did you mean: 

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

Kai_Satone
Associate II

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

 

1 ACCEPTED SOLUTION

Accepted Solutions

Use one of the timers which is available!

RTC might be an option?

The FreeRTOS documentation should cover this...

View solution in original post

7 REPLIES 7
Andrew Neil
Evangelist III

@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

 

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

Use one of the timers which is available!

RTC might be an option?

The FreeRTOS documentation should cover this...

Sarra.S
ST Employee

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 

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.


@Sarra.S wrote:

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


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


@Andrew Neil wrote:

@Kai_Satone wrote:

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


That chip doesn't have an LPTIM1 timer:


Chips which do have LPTIM:

AndrewNeil_0-1713346861083.png

So an L4 would be the closest to  what you have ...

Andrew Neil
Evangelist III