NOTHING WILL BUILD with ESPIDF 5.1/Arduino 3.0 for ESP32-S2 lolin_S2-mini

PeteDD
Posts: 45
Joined: Sat Sep 24, 2022 5:22 pm

NOTHING WILL BUILD with ESPIDF 5.1/Arduino 3.0 for ESP32-S2 lolin_S2-mini

Postby PeteDD » Sat Dec 09, 2023 1:43 pm

see https://github.com/espressif/esp-idf/issues/12763 for full details
(works just fine for other boards such as esp32-s3-devkitc-1)

platformio:

Code: Select all

[env:lolin_s2_mini]
platform = espressif32
board = lolin_s2_mini
framework = espidf, arduino
Code:

Code: Select all

#include <Arduino.h>

void setup()
{}

void loop()
{}
sdkconfig includes:

Code: Select all

CONFIG_AUTOSTART_ARDUINO=y
Debug Logs.

Code: Select all

In file included from C:/Users/peted/.platformio/packages/framework-arduinoespressif32-src-16f16f9b46f255eba682607449bb3231/cores/esp32/Arduino.h:196,
                 from C:/Users/peted/.platformio/packages/framework-arduinoespressif32-src-16f16f9b46f255eba682607449bb3231/cores/esp32/chip-debug-report.cpp:17:
C:/Users/peted/.platformio/packages/framework-arduinoespressif32-src-16f16f9b46f255eba682607449bb3231/cores/esp32/chip-debug-report.cpp: In function 'void printBeforeSetupInfo()':     
C:/Users/peted/.platformio/packages/framework-arduinoespressif32-src-16f16f9b46f255eba682607449bb3231/cores/esp32/HardwareSerial.h:360:16: error: 'USBSerial' was not declared in this scope; did you mean 'Serial'?
  360 | #define Serial USBSerial
      |                ^~~~~~~~~
C:/Users/peted/.platformio/packages/framework-arduinoespressif32-src-16f16f9b46f255eba682607449bb3231/cores/esp32/chip-debug-report.cpp:260:3: note: in expansion of macro 'Serial'

Who is online

Users browsing this forum: No registered users and 99 guests