Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LightSleep not working after update to v4.4.6 with FREERTOS_IDLE_TIME_BEFORE_SLEEP set to 2 (IDFGH-11294) #12448

Open
3 tasks done
ztefanjo opened this issue Oct 23, 2023 · 1 comment
Assignees
Labels
Status: Selected for Development Issue is selected for development Type: Bug bugs in IDF

Comments

@ztefanjo
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v4.4.6

Espressif SoC revision.

ESP32-S3

Operating System used.

Windows

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

CMD

Development Kit.

Custom Board

Power Supply used.

External 3.3V

What is the expected behavior?

Stable lightsleep function.

What is the actual behavior?

After update from v4.4.5 to v4.4.6, LightSleep is no longer working, we get "assert failed: vTaskStepTick tasks.c:2959 (( xTickCount + xTicksToJump ) <= xNextTaskUnblockTime)" more or less directly when LightSleep is enabled, see attached coredump.

vTaskStepTick assert.txt

If increasing CONFIG_FREERTOS_IDLE_TIME_BEFORE_SLEEP from 2 to 3 (the default value) it seems to work much better, we have not been able to reproduce with this setting.

Note: with earlier v4.4.x releases, we have seen this problem as well, but very, very seldom, see #9797.

Steps to reproduce.

For us, it happens more or less directly when LightSleep is entered/exited and CONFIG_FREERTOS_IDLE_TIME_BEFORE_SLEEP is set to 2.

Debug Logs.

assert failed: vTaskStepTick tasks.c:2959 (( xTickCount + xTicksToJump ) <= xNextTaskUnblockTime)

More Information.

No response

@ztefanjo ztefanjo added the Type: Bug bugs in IDF label Oct 23, 2023
@espressif-bot espressif-bot added the Status: Opened Issue is new label Oct 23, 2023
@github-actions github-actions bot changed the title LightSleep not working after update to v4.4.6 with FREERTOS_IDLE_TIME_BEFORE_SLEEP set to 2 LightSleep not working after update to v4.4.6 with FREERTOS_IDLE_TIME_BEFORE_SLEEP set to 2 (IDFGH-11294) Oct 23, 2023
@espressif-bot espressif-bot added Status: Selected for Development Issue is selected for development and removed Status: Opened Issue is new labels Oct 25, 2023
@AxelLin
Copy link
Contributor

AxelLin commented May 26, 2024

@0xjakob Any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Selected for Development Issue is selected for development Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

5 participants