Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

arduino-esp32 compile error! #11549

Unanswered
sova32 asked this question in Q&A
Discussion options

Board

ESP32-S3

Device Description

waveshare esp32-s3 pico

Hardware Configuration

No config!

Version

other

IDE Name

VSCode

Operating System

Linux Manjaro with last update

Flash frequency

80MHz

PSRAM enabled

no

Upload speed

default

Description

i create new project (ESP-IDF 5.4.1) arduino-as-component template
then add:
Add arduino as ESP-IDF component.

click build and get errors:

#include errors detected. Consider updating your compile_commands.json or includePath. Squiggles are disabled for this translation unit (/run/media/vadiki/250_GB_1TB/projects/ESP32S3/france/Wavashare_ESP32S3_Pico_LCD_Touch/LVGL/TFT_Touch_esp_idf54/main/main.cpp).C/C++(1696)
cannot open source file "Arduino.h"C/C++(1696)
ESP-IDF Hint: esp_mac.h header file is not included by esp_system.h anymore. It shall then be manually included with #include "esp_mac.h"

/run/media/vadiki/250_GB_1TB/projects/ESP32S3/france/Wavashare_ESP32S3_Pico_LCD_Touch/LVGL/TFT_Touch_esp_idf54/components/arduino/cores/esp32/esp32-hal-i2c-slave.c: In function 'i2cSlaveInit':
/run/media/vadiki/250_GB_1TB/projects/ESP32S3/france/Wavashare_ESP32S3_Pico_LCD_Touch/LVGL/TFT_Touch_esp_idf54/components/arduino/cores/esp32/esp32-hal-i2c-slave.c:339:3: error: implicit declaration of function 'i2c_ll_set_mode'; did you mean 'i2c_ll_set_tout'? [-Wimplicit-function-declaration]
339 | i2c_ll_set_mode(i2c->dev, I2C_BUS_MODE_SLAVE);
| ^~~~~~~~~~~~~~~
| i2c_ll_set_tout
/run/media/vadiki/250_GB_1TB/projects/ESP32S3/france/Wavashare_ESP32S3_Pico_LCD_Touch/LVGL/TFT_Touch_esp_idf54/components/arduino/cores/esp32/esp32-hal-i2c-slave.c:339:29: error: 'I2C_BUS_MODE_SLAVE' undeclared (first use in this function); did you mean 'I2C_MODE_SLAVE'?
339 | i2c_ll_set_mode(i2c->dev, I2C_BUS_MODE_SLAVE);
| ^~~~~~~~~~~~~~~~~~
| I2C_MODE_SLAVE
/run/media/vadiki/250_GB_1TB/projects/ESP32S3/france/Wavashare_ESP32S3_Pico_LCD_Touch/LVGL/TFT_Touch_esp_idf54/components/arduino/cores/esp32/esp32-hal-i2c-slave.c:339:29: note: each undeclared identifier is reported only once for each function it appears in
/run/media/vadiki/250_GB_1TB/projects/ESP32S3/france/Wavashare_ESP32S3_Pico_LCD_Touch/LVGL/TFT_Touch_esp_idf54/components/arduino/cores/esp32/esp32-hal-i2c-slave.c:340:3: error: implicit declaration of function 'i2c_ll_enable_pins_open_drain' [-Wimplicit-function-declaration]
340 | i2c_ll_enable_pins_open_drain(i2c->dev, true);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1461/1713] Building C object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/cores/esp32/esp32-hal-misc.c.obj
ninja: build stopped: subcommand failed.

  • The terminal process "ninja" terminated with exit code: 1.

Sketch

#include "Arduino.h"
extern "C" void app_main()
{
 initArduino();
 pinMode(4, OUTPUT);
 digitalWrite(4, HIGH);
 // Do your own thing
}

Debug Message

NO DEBUG!!!! YOUR LIB CAN NOT BE COMPILED!!!!!

Other Steps to Reproduce

  1. clear installation
  2. add arduino
  3. build

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
You must be logged in to vote

Replies: 1 comment

Comment options

Use ESP-IDF 5.4.2 instead. There were some changes in IDF in between 5.4.1 and 5.4.2 that caused those build errors

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
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #11548 on July 03, 2025 15:23.

AltStyle によって変換されたページ (->オリジナル) /