FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [November 2016 Threads]
Hi
I am working on an STM32L432, and trying to implement low-power features.
Specifically, I am using the Tickless-Idle mode of FreeRTOS. I would like to be able to (when there is nothing else to do) wake-up through a periodic interrupt, perform minimal processing (about 100us worth), and immediately go back to sleep.
I notice that by default, the value of configEXPECTEDIDLETIMEBEFORESLEEP is 2. With that value, the MCU stays awake for at least a whole tick period (1ms) before being able to sleep again (too long for me).
I tried to force configEXPECTEDIDLETIMEBEFORESLEEP to 1, and that produced the correct behaviour: MCU falls back to sleep immediately if there are no tasks above Idle ready to run. But that triggers a compile error that says: “#error configEXPECTEDIDLETIMEBEFORESLEEP must not be less than 2”.
I can disable that error, but I would like to better understand the dangers of doing so.
Q) What are the risk of side-effects of setting configEXPECTEDIDLETIMEBEFORESLEEP to a value < 2?
Note that in that project keeping a tight accounting of tick periods is not required. The tick counter could easily skip one tick or freeze for one tick, once in a while, without any problem.
Thanks
Bruno
Bruno Paillard
Ph D
Senior Designer
Convergence Instruments
tel: (819) 575 1990
email: bruno.paillard@convergenceinstruments.com
web: www.convergenceinstruments.com
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.