Skip to content
Discussion options

You must be logged in to vote

This is caused / limited by Espressif IDF default freertos tick rate.

Any time the async loop sleeps it release the current thread in freertos so other background tasks can be handled.

It turns out the default freertos tick rate is 100hz / 10ms so that's why it takes (at least) that long to get back to the the application thread.

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/kconfig.html#config-freertos-hz

If your particular application actually needs more responsiveness than that it's generally safe to speed that tick rate up in a custom build to 1000hz / 1ms though I expect your power usage will go up too.

Replies: 5 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jomasnash
Comment options

@steveh127
Comment options

Comment options

andrewleech
Aug 4, 2024
Collaborator Sponsor

You must be logged in to vote
2 replies
@shariltumin
Comment options

@Josverl
Comment options

Josverl Aug 5, 2024
Collaborator Sponsor

Answer selected by jomasnash
Comment options

You must be logged in to vote
5 replies
@peterhinch
Comment options

@jomasnash
Comment options

@peterhinch
Comment options

@jomasnash
Comment options

@peterhinch
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
7 participants