Problema:
Al intentar compilar tu firmware ESP-IDF (con o sin PlatformIO), ves un mensaje de error como
vtaskdelay_error_output.txt
src/main.cpp:13:9: error: 'vTaskDelay' was not declared in this scope
13 | vTaskDelay(1000 / portTICK_PERIOD_MS);Solución
Incluye FreeRTOS añadiendo las siguientes líneas al inicio del archivo donde ocurrió el error (src/main.cpp en este ejemplo):
include_freertos.cpp
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
Echa un vistazo a artículos similares por categoría:
ESP8266/ESP32 FreeRTOS PlatformIO
Si este artículo te ha ayudado, considera invitarme a un café o hacer una donación vía PayPal para apoyar la investigación y publicación de nuevos artículos en TechOverflow