You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hacking the sdkconfig, though I didn't get how exactly. Copying the pre-built sdkconfig file is really not a way to go.
Defining configTICK_RATE_HZ before other includes doesn't help. In the sketch below, I expect to get the delay of ~10ms with the vTaskDelay function since delay is just a wrapper for vTaskDelay according to https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/esp32-hal-misc.c#L173. But the actual delay is ~1ms, a wrong value. portTICK_PERIOD_MS seems to be set correctly though (10 ms per tick).
This can only be changed via sdkconfig AND only if you use arduino as a component of ESP-IDF. Without doing this any changes will not take effect as the ESP-IDF code is pre-compiled with a common config file (refer to tools/sdk/{target}/sdkconfig for details)
Hardware:
Board: M5Core2
Core Installation version: arduino-esp32 v2.0.1
IDE name: Arduino IDE
Flash Frequency: 240Mhz
PSRAM enabled: Enabled
Upload Speed: 115200
Computer OS: Ubuntu 20.04
Description
I've searched for the options how to modify the FreeRTOS frequency in Arduino and found these:
Defining
configTICK_RATE_HZ
before other includes doesn't help. In the sketch below, I expect to get the delay of ~10ms with thevTaskDelay
function sincedelay
is just a wrapper forvTaskDelay
according to https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/esp32-hal-misc.c#L173. But the actual delay is ~1ms, a wrong value.portTICK_PERIOD_MS
seems to be set correctly though (10 ms per tick).Sketch
Serial output
The text was updated successfully, but these errors were encountered: