Skip to content

arduino-esp32 compile error! #11548

Closed
Closed
@sova32

Description

@sova32

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions