From 36c0a4e5167787f02954fc22b5d021011aebafb9 Mon Sep 17 00:00:00 2001 From: Alex Duchesne Date: Fri, 19 Jul 2019 14:04:25 -0400 Subject: [PATCH] Added documentation regarding delay() resolution in esp-idf component --- docs/esp-idf_component.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/esp-idf_component.md b/docs/esp-idf_component.md index e58c157328d..eaf88c65c07 100644 --- a/docs/esp-idf_component.md +++ b/docs/esp-idf_component.md @@ -68,6 +68,11 @@ If you are writing code that does not require Arduino to compile and you want yo #endif ``` +## FreeRTOS Tick Rate (Hz) + +You might notice that Arduino-esp32's `delay()` function will only work in multiples of 10ms. That is because, by default, esp-idf handles task events 100 times per second. +To fix that behavior you need to set FreeRTOS tick rate to 1000Hz in `make menuconfig` -> `Component config` -> `FreeRTOS` -> `Tick rate`. + ## Compilation Errors As commits are made to esp-idf and submodules, the codebases can develop incompatibilities which cause compilation errors. If you have problems compiling, follow the instructions in [Issue #1142](https://github.com/espressif/arduino-esp32/issues/1142) to roll esp-idf back to a known good version.