Skip to main content
Associate III
April 17, 2024
Solved

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

  • April 17, 2024
  • 3 replies
  • 3604 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

Andrew Neil
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

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate III
April 17, 2024

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

Andrew Neil
Andrew NeilBest answer
Super User
April 17, 2024

Use one of the timers which is available!

RTC might be an option?

The FreeRTOS documentation should cover this...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
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 

 

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.
Andrew Neil
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 ...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Andrew Neil
Super User
April 17, 2024

@Kai_Satone wrote:

 FreeRTOS with STM32f411


https://www.google.com/search?q=freertos+with+stm32f411+sleep+mode

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.