PlatformIO Community

Sudden errors after updating to Espressif framework 4.1.0 version

Hello everyone.


I was working on project using esp32. Now after sometime, I again visited the code to update it and add some more functionality and suddenly, I am started getting errors. This is after I updated the esp32 framework to newest version. It is a production code, so it is working on multiple esp32 and suddenly I am started getting these errors now

Errors are in uart interrupt routine. Also including following headers

#include “sdkconfig.h”
#include <driver/uart.h>
#include “esp_log.h”
#include “driver/gpio.h”
#include “esp_intr_alloc.h”



Erros are fixed if I downgrade the framework to 3.5.0. But error remain in framework 4.0.0 and 4.1.0

4.x is a major version increase from 3.x, it increased the Arduino-ESP32 version from 1.0.6 to 2.0.1.

But when you use framework = espidf with 3.5.0 it should be the same as in 4.1.0: Namely ESP-IDF v4.3.2. Do you use Arduino-ESP32 or ESP-IDF as the framework = ... in the platformio.ini?

Arduino-ESP32 as framework I am using

That’s a lot of calls into ESP-IDF for an Arduino program that could use the Arduino API like Serial.

But then most likely your program is not Arduino core 2.x compatible – internally that was an upgrade from ESP-IDF v3.3 to v4.4.