Using ESP32-S2 Arduino with PIO

I am attempting to use PIO to program an ESP32-S2.
This topic aims to accomplish the same, however the steps laid out don’t work for me.

@maxgerhardt suggested to look at this post, but I haven’t been successful in getting anything to compile.

My current config file:

[env:esp32s2]
platform = espressif32
platform_packages =
	toolchain-xtensa32s2
	framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#cbcba53
	platformio/tool-esptoolpy @ ~1.30100
framework = arduino
board = esp32dev
board_build.mcu = esp32s2
board_build.partitions = huge_app.csv
board_build.variant = esp32s2
board_build.f_cpu = 240000000L
board_build.f_flash = 80000000L
board_build.flash_mode = qio
board_build.arduino.ldscript = esp32s2_out.ld
build_unflags =
	-DARDUINO_ESP32_DEV
	-DARDUINO_VARIANT="esp32"
build_flags =
	-DARDUINO_ESP32S2_DEV
	-DARDUINO_VARIANT="esp32s2"

monitor_speed = 115200
lib_deps =
     # RECOMMENDED
     # Accept new functionality in a backwards compatible manner and patches
     adafruit/RTClib @ ^1.14.1
     adafruit/Adafruit NeoPixel @ ^1.8.5

If I hit build there’s an exception:

> Executing task: C:\Users\manua\.platformio\penv\Scripts\platformio.exe run <

Processing esp32s2 (platform: espressif32; framework: arduino; board: esp32dev)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.3.1) > Espressif ESP32 Dev Module
HARDWARE: ESP32S2 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 3.10006.210326 (1.0.6)
 - tool-esptoolpy 1.30100.210531 (3.1.0)
 - toolchain-esp32s2ulp 1.22851.191205 (2.28.51)
 - toolchain-riscv-esp 1.80400.0 (8.4.0)
 - toolchain-xtensa32s2 1.80400.210211 (8.4.0)
Converting ws2812_led.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 31 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <RTClib> 1.14.1
|   |-- <Wire> 1.0.1
|-- <Adafruit NeoPixel> 1.8.5
|-- <WiFi> 1.0
|-- <Wire> 1.0.1
Building in release mode
Compiling .pio\build\esp32s2\src\button_interrupts.cpp.o
Compiling .pio\build\esp32s2\src\main.cpp.o
Compiling .pio\build\esp32s2\src\power_supply_control.cpp.o
Compiling .pio\build\esp32s2\src\rtc_time.cpp.o
Compiling .pio\build\esp32s2\src\sensors.cpp.o
Compiling .pio\build\esp32s2\src\serial.cpp.o
Compiling .pio\build\esp32s2\src\tubes.cpp.o
Compiling .pio\build\esp32s2\src\ws2812_led.ino.cpp.o
Generating partitions .pio\build\esp32s2\partitions.bin
Compiling .pio\build\esp32s2\lib177\Wire\Wire.cpp.o
Compiling .pio\build\esp32s2\lib91a\RTClib\RTClib.cpp.o
In file included from src\button_interrupts.cpp:1:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
xtensa-esp32s2-elf-g++: error: src\ws2812_led.ino.cpp: No such file or directory
xtensa-esp32s2-elf-g++: fatal error: no input files
compilation terminated.
Compiling .pio\build\esp32s2\lib0d7\Adafruit NeoPixel\Adafruit_NeoPixel.cpp.o
Compiling .pio\build\esp32s2\lib0d7\Adafruit NeoPixel\esp.c.o
Compiling .pio\build\esp32s2\lib0d7\Adafruit NeoPixel\esp8266.c.o
Compiling .pio\build\esp32s2\lib0d7\Adafruit NeoPixel\kendyte_k210.c.o
Compiling .pio\build\esp32s2\lib0d7\Adafruit NeoPixel\rp2040.c.o
*** [.pio\build\esp32s2\src\ws2812_led.ino.cpp.o] Error 1
*** [.pio\build\esp32s2\src\button_interrupts.cpp.o] Error 1
cc1.exe: warning: '-Werror=' argument '-Werror=reorder' is not valid for C
cc1.exe: warning: '-Werror=' argument '-Werror=reorder' is not valid for C
cc1.exe: warning: '-Werror=' argument '-Werror=reorder' is not valid for C
In file included from src\main.cpp:12:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
cc1.exe: warning: '-Werror=' argument '-Werror=reorder' is not valid for C
*** [.pio\build\esp32s2\src\main.cpp.o] Error 1
In file included from src\power_supply_control.cpp:11:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from .pio\libdeps\esp32s2\Adafruit NeoPixel\esp.c:22:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32s2\src\power_supply_control.cpp.o] Error 1
*** [.pio\build\esp32s2\lib0d7\Adafruit NeoPixel\esp.c.o] Error 1
In file included from src\rtc_time.cpp:10:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32s2\src\rtc_time.cpp.o] Error 1
In file included from src\serial.cpp:10:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32s2\src\serial.cpp.o] Error 1
In file included from src\sensors.cpp:10:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32s2\src\sensors.cpp.o] Error 1
In file included from src\tubes.cpp:11:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from C:\Users\manua\.platformio\packages\framework-arduinoespressif32\libraries\Wire\src\Wire.cpp:33:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32s2\src\tubes.cpp.o] Error 1
*** [.pio\build\esp32s2\lib177\Wire\Wire.cpp.o] Error 1
In file included from .pio\libdeps\esp32s2\RTClib\src\RTClib.h:25,
                 from .pio\libdeps\esp32s2\RTClib\src\RTClib.cpp:46:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32s2\lib91a\RTClib\RTClib.cpp.o] Error 1
In file included from .pio\libdeps\esp32s2\Adafruit NeoPixel\Adafruit_NeoPixel.h:41,
                 from .pio\libdeps\esp32s2\Adafruit NeoPixel\Adafruit_NeoPixel.cpp:46:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32s2\lib0d7\Adafruit NeoPixel\Adafruit_NeoPixel.cpp.o] Error 1
========================================================================================== [FAILED] Took 2.18 seconds ==========================================================================================The terminal process "C:\Users\manua\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.

I also tried to download the toolchain and placed it in my Downloads folder and added the old package.json file.

[env:esp32s2]
platform = espressif32
platform_packages =
	toolchain-xtensa32s2@file://C:/Users/manua/Downloads/xtensa-esp32s2-elf-gcc8_4_0-esp-2021r1-win32/xtensa-esp32s2-elf    
	framework-arduinoespressif32
	platformio/tool-esptoolpy @ ~1.30100
framework = arduino
board = esp32dev
board_build.mcu = esp32s2
board_build.partitions = huge_app.csv
board_build.variant = esp32s2
board_build.f_cpu = 240000000L
board_build.f_flash = 80000000L
board_build.flash_mode = qio
board_build.arduino.ldscript = esp32s2_out.ld
build_unflags =
	-DARDUINO_ESP32_DEV
	-DARDUINO_VARIANT="esp32"
build_flags =
	-DARDUINO_ESP32S2_DEV
	-DARDUINO_VARIANT="esp32s2"

monitor_speed = 115200
lib_deps =
     # RECOMMENDED
     # Accept new functionality in a backwards compatible manner and patches
     adafruit/RTClib @ ^1.14.1
     adafruit/Adafruit NeoPixel @ ^1.8.5

No success, same errors:

> Executing task: C:\Users\manua\.platformio\penv\Scripts\platformio.exe run <

Processing esp32s2 (platform: espressif32; framework: arduino; board: esp32dev)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.3.1) > Espressif ESP32 Dev Module
HARDWARE: ESP32S2 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 3.10006.210326 (1.0.6)
 - tool-esptoolpy 1.30100.210531 (3.1.0)
 - toolchain-esp32s2ulp 1.22851.191205 (2.28.51)
 - toolchain-riscv-esp 1.80400.0 (8.4.0)
 - toolchain-xtensa32s2 0.0.0+20210811200657
Converting ws2812_led.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 31 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <RTClib> 1.14.1
|   |-- <Wire> 1.0.1
|-- <Adafruit NeoPixel> 1.8.5
|-- <WiFi> 1.0
|-- <Wire> 1.0.1
Building in release mode
Compiling .pio\build\esp32s2\src\button_interrupts.cpp.o
Compiling .pio\build\esp32s2\src\main.cpp.o
Compiling .pio\build\esp32s2\src\power_supply_control.cpp.o
Compiling .pio\build\esp32s2\src\rtc_time.cpp.o
Compiling .pio\build\esp32s2\src\sensors.cpp.o
Compiling .pio\build\esp32s2\src\serial.cpp.o
Compiling .pio\build\esp32s2\src\tubes.cpp.o
Compiling .pio\build\esp32s2\src\ws2812_led.ino.cpp.o
Generating partitions .pio\build\esp32s2\partitions.bin
Compiling .pio\build\esp32s2\lib177\Wire\Wire.cpp.o
Compiling .pio\build\esp32s2\lib91a\RTClib\RTClib.cpp.o
In file included from src\button_interrupts.cpp:1:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
Compiling .pio\build\esp32s2\lib0d7\Adafruit NeoPixel\Adafruit_NeoPixel.cpp.o
Compiling .pio\build\esp32s2\lib0d7\Adafruit NeoPixel\esp.c.o
Compiling .pio\build\esp32s2\lib0d7\Adafruit NeoPixel\esp8266.c.o
Compiling .pio\build\esp32s2\lib0d7\Adafruit NeoPixel\kendyte_k210.c.o
Compiling .pio\build\esp32s2\lib0d7\Adafruit NeoPixel\rp2040.c.o
*** [.pio\build\esp32s2\src\button_interrupts.cpp.o] Error 1
In file included from src\main.cpp:12:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32s2\src\main.cpp.o] Error 1
cc1.exe: warning: '-Werror=' argument '-Werror=reorder' is not valid for C
cc1.exe: warning: '-Werror=' argument '-Werror=reorder' is not valid for C
cc1.exe: warning: '-Werror=' argument '-Werror=reorder' is not valid for C
In file included from src\power_supply_control.cpp:11:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
cc1.exe: warning: '-Werror=' argument '-Werror=reorder' is not valid for C
In file included from src\rtc_time.cpp:10:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32s2\src\power_supply_control.cpp.o] Error 1
In file included from src\sensors.cpp:10:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from src\tubes.cpp:11:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from src\serial.cpp:10:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32s2\src\rtc_time.cpp.o] Error 1
In file included from C:\Users\manua\AppData\Local\Temp\tmpltn446mm:1:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32s2\src\sensors.cpp.o] Error 1
*** [.pio\build\esp32s2\src\tubes.cpp.o] Error 1
*** [.pio\build\esp32s2\src\serial.cpp.o] Error 1
*** [.pio\build\esp32s2\src\ws2812_led.ino.cpp.o] Error 1
In file included from C:\Users\manua\.platformio\packages\framework-arduinoespressif32\libraries\Wire\src\Wire.cpp:33:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32s2\lib177\Wire\Wire.cpp.o] Error 1
In file included from .pio\libdeps\esp32s2\Adafruit NeoPixel\esp.c:22:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from .pio\libdeps\esp32s2\RTClib\src\RTClib.h:25,
                 from .pio\libdeps\esp32s2\RTClib\src\RTClib.cpp:46:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32s2\lib0d7\Adafruit NeoPixel\esp.c.o] Error 1
*** [.pio\build\esp32s2\lib91a\RTClib\RTClib.cpp.o] Error 1
In file included from .pio\libdeps\esp32s2\Adafruit NeoPixel\Adafruit_NeoPixel.h:41,
                 from .pio\libdeps\esp32s2\Adafruit NeoPixel\Adafruit_NeoPixel.cpp:46:
C:\Users\manua\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:185:10: fatal error: pins_arduino.h: No such file or directory

**********************************************************************
* Looking for pins_arduino.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:pins_arduino.h"
* Web  > https://platformio.org/lib/search?query=header:pins_arduino.h
*
**********************************************************************

 #include "pins_arduino.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32s2\lib0d7\Adafruit NeoPixel\Adafruit_NeoPixel.cpp.o] Error 1
========================================================================================== [FAILED] Took 2.23 seconds ==========================================================================================The terminal process "C:\Users\manua\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.

Try removing all C:\Users\<user>\.platformio\packages\framework-arduinoespressif32* folders. It looks to me as if your framework download wasn’t completed properly.

If I use the latest toolchain and the latest git version of the core, frozen by a commit hash this time so that this answer won’t get obsolete so quickly, it compiles normally.

[env:esp32s2]
platform = espressif32
; toolchain download links see
; refer "name": "xtensa-esp32s2-elf-gcc","version": "gcc8_4_0-esp-2021r1" section of
; https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
; e.g. Windows: https://github.com/espressif/crosstool-NG/releases/download/esp-2021r1/xtensa-esp32s2-elf-gcc8_4_0-esp-2021r1-win32.zip
platform_packages =
        toolchain-xtensa32s2@file://C:\Users\Max\Downloads\xtensa-esp32s2-elf
        framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git#a4118ea88987c28aac3a49bcb9cc5d6c0acc6f3f
        platformio/tool-esptoolpy @ ~1.30100
framework = arduino
board = esp32dev
board_build.mcu = esp32s2
board_build.partitions = huge_app.csv
board_build.variant = esp32s2
board_build.f_cpu = 240000000L
board_build.f_flash = 80000000L
board_build.flash_mode = qio
board_build.arduino.ldscript = esp32s2_out.ld
build_unflags =
        -DARDUINO_ESP32_DEV
        -DARDUINO_VARIANT="esp32"
build_flags =
        -DARDUINO_ESP32S2_DEV
        -DARDUINO_VARIANT="esp32s2"

monitor_speed = 115200
lib_deps =
     # RECOMMENDED
     # Accept new functionality in a backwards compatible manner and patches
     adafruit/RTClib @ ^1.14.1
     adafruit/Adafruit NeoPixel @ ^1.8.5

In C:\Users\Max\Downloads\xtensa-esp32s2-elf there is the extracted toolchain from the download link mentioned above, plus the package.json copied from the current toolchain-xtensa32s2 version

{
  "name": "toolchain-xtensa32s2",
  "version": "1.80400.210211",
  "description": "GCC Toolchain for Xtensa32-S2 processor",
  "keywords": [
    "build tools",
    "compiler",
    "assembler",
    "linker",
    "preprocessor",
    "esp32s2"
  ],
  "license": "GPL-2.0-or-later",
  "repository": {
    "type": "git",
    "url": "https://github.com/espressif/crosstool-NG"
  },
  "system": [
    "windows_amd64"
  ]
}

Compilation result with code src\main.cpp

#include <Arduino.h>
#include <RTClib.h>
#include <Adafruit_NeoPixel.h>

void setup(){}
void loop(){}
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.3.1) > Espressif ESP32 Dev Module
HARDWARE: ESP32S2 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 0.0.0+sha.a4118ea8
 - tool-esptoolpy 1.30100.210531 (3.1.0)
 - toolchain-esp32s2ulp 1.22851.191205 (2.28.51)
 - toolchain-riscv-esp 1.80400.0 (8.4.0)
 - toolchain-xtensa32s2 1.80400.210211 (8.4.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 33 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <RTClib> 1.14.1
|   |-- <Wire> 2.0.0
|-- <Adafruit NeoPixel> 1.8.5
Building in release mode
Compiling .pio\build\esp32s2\src\main.cpp.o
[...]
Linking .pio\build\esp32s2\firmware.elf
Retrieving maximum program size .pio\build\esp32s2\firmware.elf
Checking size .pio\build\esp32s2\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   3.0% (used 9940 bytes from 327680 bytes)
Flash: [=         ]   6.0% (used 190198 bytes from 3145728 bytes)
Building .pio\build\esp32s2\firmware.bin
esptool.py v3.1
Merged 2 ELF sections
============== [SUCCESS] Took 10.38 seconds ==============
2 Likes

Thanks for the help!
On my main PC the error when downloading from GitHub just wont go away. I used my laptop to download the files and transferred them to my PC.

The next giant issue is that the ESP32-S2 constantly crashes / is stuck in a bootloop when I upload via PIO.
When using the Arduino IDE it works fine.

Upload log PIO:

> Executing task in folder Rev_3_Base_Project: C:\Users\manua\.platformio\penv\Scripts\platformio.exe run --target upload <

Processing esp32s2 (platform: espressif32; framework: arduino; board: esp32dev)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.3.1) > Espressif ESP32 Dev Module
HARDWARE: ESP32S2 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 0.0.0+sha.a4118ea8
 - tool-esptoolpy 1.30100.210531 (3.1.0)
 - tool-mkspiffs 2.230.0 (2.30)
 - toolchain-esp32s2ulp 1.22851.191205 (2.28.51)
 - toolchain-riscv-esp 1.80400.0 (8.4.0)
 - toolchain-xtensa32s2 0.0.0+20210811213636
Converting Rev_3_Base_Project.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 33 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <RTClib> 1.14.1
|   |-- <Wire> 2.0.0
|-- <Adafruit NeoPixel> 1.8.5
|-- <WiFi> 2.0.0
|-- <Wire> 2.0.0
Building in release mode
Compiling .pio\build\esp32s2\src\Rev_3_Base_Project.ino.cpp.o
Retrieving maximum program size .pio\build\esp32s2\firmware.elf
Checking size .pio\build\esp32s2\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]  10.2% (used 33524 bytes from 327680 bytes)
Flash: [==        ]  22.3% (used 702862 bytes from 3145728 bytes)
Configuring upload protocol...
AVAILABLE: esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: COM7
Uploading .pio\build\esp32s2\firmware.bin
esptool.py v3.1
Serial port COM7
Connecting....
Chip is ESP32-S2
Features: WiFi, ADC and temperature sensor calibration in BLK2 of efuse
Crystal is 40MHz
MAC: 7c:df:a1:03:83:d8
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00001000 to 0x00004fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x000bbfff...
Flash params set to 0x002f
Compressed 13600 bytes to 9358...
Writing at 0x00001000... (100 %)
Wrote 13600 bytes (9358 compressed) at 0x00001000 in 0.4 seconds (effective 244.6 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 119...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (119 compressed) at 0x00008000 in 0.1 seconds (effective 410.6 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 556.9 kbit/s)...
Hash of data verified.
Compressed 703248 bytes to 469617...
Writing at 0x00010000... (3 %)
Writing at 0x0001b7ef... (6 %)
Writing at 0x00027df2... (10 %)
Writing at 0x0002f1c1... (13 %)
Writing at 0x00034f25... (17 %)
Writing at 0x0003a57e... (20 %)
Writing at 0x0003fa0c... (24 %)
Writing at 0x0004500b... (27 %)
Writing at 0x0004a062... (31 %)
Writing at 0x0004ef75... (34 %)
Writing at 0x00053e69... (37 %)
Writing at 0x00058e76... (41 %)
Writing at 0x0005df88... (44 %)
Writing at 0x00063183... (48 %)
Writing at 0x00068648... (51 %)
Writing at 0x0006d76a... (55 %)
Writing at 0x000728cb... (58 %)
Writing at 0x00077852... (62 %)
Writing at 0x0007c7f6... (65 %)
Writing at 0x00081795... (68 %)
Writing at 0x00086b81... (72 %)
Writing at 0x0008bd8b... (75 %)
Writing at 0x000915e7... (79 %)
Writing at 0x00096eab... (82 %)
Writing at 0x0009d1cc... (86 %)
Writing at 0x000a7057... (89 %)
Writing at 0x000ad2d2... (93 %)
Writing at 0x000b24ac... (96 %)
Writing at 0x000b7b52... (100 %)
Wrote 703248 bytes (469617 compressed) at 0x00010000 in 11.1 seconds (effective 507.8 kbit/s)...
Hash of data verified.

Leaving...
========================================================================================= [SUCCESS] Took 17.36 seconds =========================================================================================

Log from the Arduino IDE:

Sketch uses 695886 bytes (53%) of program storage space. Maximum is 1310720 bytes.
Global variables use 33524 bytes (10%) of dynamic memory, leaving 294156 bytes for local variables. Maximum is 327680 bytes.
S:\Dokumente\Arduino\hardware\espressif\esp32/tools/esptool/esptool.exe --chip esp32s2 --port COM7 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 S:\OneDrive\OneDrive - stud.hs-emden-leer.de\Dokumente\Arduino\hardware\espressif\esp32/tools/partitions/boot_app0.bin 0x1000 C:\Users\manua\AppData\Local\Temp\arduino_build_459216/Rev_3_Base_Project.ino.bootloader.bin 0x10000 C:\Users\manua\AppData\Local\Temp\arduino_build_459216/Rev_3_Base_Project.ino.bin 0x8000 C:\Users\manua\AppData\Local\Temp\arduino_build_459216/Rev_3_Base_Project.ino.partitions.bin 

esptool.py v3.1
Serial port COM7
Connecting....
Chip is ESP32-S2
Features: WiFi, ADC and temperature sensor calibration in BLK2 of efuse
Crystal is 40MHz
MAC: 7c:df:a1:03:83:d8
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00001000 to 0x00004fff...
Flash will be erased from 0x00010000 to 0x000b9fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 568.9 kbit/s)...
Hash of data verified.
Compressed 13600 bytes to 9358...
Writing at 0x00001000... (100 %)
Wrote 13600 bytes (9358 compressed) at 0x00001000 in 0.4 seconds (effective 309.9 kbit/s)...
Hash of data verified.
Compressed 696272 bytes to 465771...
Writing at 0x00010000... (3 %)
Writing at 0x0001b2f0... (6 %)
Writing at 0x000282e4... (10 %)
Writing at 0x0002ed2d... (13 %)
Writing at 0x00034933... (17 %)
Writing at 0x0003a238... (20 %)
Writing at 0x0003f5d4... (24 %)
Writing at 0x00044b69... (27 %)
Writing at 0x000499f4... (31 %)
Writing at 0x0004e98b... (34 %)
Writing at 0x000537a0... (37 %)
Writing at 0x000588c3... (41 %)
Writing at 0x0005da5d... (44 %)
Writing at 0x00062cce... (48 %)
Writing at 0x00068034... (51 %)
Writing at 0x0006d247... (55 %)
Writing at 0x000722a8... (58 %)
Writing at 0x00077227... (62 %)
Writing at 0x0007c14c... (65 %)
Writing at 0x000810d6... (68 %)
Writing at 0x000864fe... (72 %)
Writing at 0x0008b837... (75 %)
Writing at 0x000912ce... (79 %)
Writing at 0x00096988... (82 %)
Writing at 0x0009cf68... (86 %)
Writing at 0x000a6f8b... (89 %)
Writing at 0x000acc0b... (93 %)
Writing at 0x000b1f03... (96 %)
Writing at 0x000b78c8... (100 %)
Wrote 696272 bytes (465771 compressed) at 0x00010000 in 8.4 seconds (effective 666.9 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 128...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.1 seconds (effective 473.9 kbit/s)...
Hash of data verified.Leaving...

platformio.ini:

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:esp32s2]
platform = espressif32
; toolchain download links see
; refer "name": "xtensa-esp32s2-elf-gcc","version": "gcc8_4_0-esp-2021r1" section of
; https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
; e.g. Windows: https://github.com/espressif/crosstool-NG/releases/download/esp-2021r1/xtensa-esp32s2-elf-gcc8_4_0-esp-2021r1-win32.zip
platform_packages =
        toolchain-xtensa32s2@file://C:\Users\manua\Downloads\xtensa-esp32s2-elf
        framework-arduinoespressif32
        platformio/tool-esptoolpy @ ~1.30100
framework = arduino
board = esp32dev
board_build.mcu = esp32s2
board_build.partitions = huge_app.csv
board_build.variant = esp32s2
board_build.f_cpu = 240000000L
board_build.f_flash = 80000000L
board_build.flash_mode = qio
board_build.arduino.ldscript = esp32s2_out.ld
build_unflags =
        -DARDUINO_ESP32_DEV
        -DARDUINO_VARIANT="esp32"
build_flags =
        -DARDUINO_ESP32S2_DEV
        -DARDUINO_VARIANT="esp32s2"

monitor_speed = 115200
lib_deps =
     # RECOMMENDED
     # Accept new functionality in a backwards compatible manner and patches
     adafruit/RTClib @ ^1.14.1
     adafruit/Adafruit NeoPixel @ ^1.8.5

Changing qio to dio and vice versa doesn’t help.
In the Arduino IDE I used qio.

Here is the Serial output PIO (dio):
The first serial messages are expected but then it crashes.

ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0xc (RTC_SW_CPU_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40026c60
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x40c
load:0x4004c000,len:0x864
load:0x40050000,len:0x2448
entry 0x4004c184
-- Nixie Tube Clock Rev. 3 Base Project --
Firmware Version: 1.1S
Firmware Release Date: 2021
Author: Wilhelm Zeuschner
www.wizeus.de/nixie-clock
(c) Wilhelm Zeuschner 2020, all rights reserved
Compiled on: Aug 11 2021, 22:57:18
Compiler version: 8.4.0
------------

Guru Meditation Error: Core  0 panic'ed (StoreProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x400f9f88  PS      : 0x00060230  A0      : 0x80083a2a  A1      : 0x3ffd0920
A2      : 0x00000000  A3      : 0x00000068  A4      : 0xfffffc7f  A5      : 0x00002180  
A6      : 0x3ffc67a8  A7      : 0x00000000  A8      : 0x00000100  A9      : 0x00000001
A10     : 0x00000000  A11     : 0x3ffc33c4  A12     : 0x40086260  A13     : 0x00000000  
A14     : 0x3ffc67a8  A15     : 0x3ffc2ff4  SAR     : 0x00000013  EXCCAUSE: 0x0000001d  
EXCVADDR: 0x00000126  LBEG    : 0x40086260  LEND    : 0x00000000  LCOUNT  : 0x40027c85


Backtrace:0x400f9f85:0x3ffd09200x40083a27:0x3ffd0940 0x40082bc3:0x3ffd0970 0x40087b2e:0x3ffd09a0 




ELF file SHA256: 0000000000000000

Rebooting...
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0xc (RTC_SW_CPU_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40026c60
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x40c
load:0x4004c000,len:0x864
load:0x40050000,len:0x2448
entry 0x4004c184
-- Nixie Tube Clock Rev. 3 Base Project --
Firmware Version: 1.1S
Firmware Release Date: 2021
Author: Wilhelm Zeuschner
www.wizeus.de/nixie-clock
(c) Wilhelm Zeuschner 2020, all rights reserved
Compiled on: Aug 11 2021, 22:57:18
Compiler version: 8.4.0
------------

Guru Meditation Error: Core  0 panic'ed (StoreProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x400f9f88  PS      : 0x00060230  A0      : 0x80083a2a  A1      : 0x3ffd0920  
A2      : 0x00000000  A3      : 0x00000068  A4      : 0xfffffc7f  A5      : 0x00002180
A6      : 0x3ffc67a8  A7      : 0x00000000  A8      : 0x00000100  A9      : 0x00000001  
A10     : 0x00000000  A11     : 0x3ffc33c4  A12     : 0x40086260  A13     : 0x00000000
A14     : 0x3ffc67a8  A15     : 0x3ffc2ff4  SAR     : 0x00000013  EXCCAUSE: 0x0000001d  
EXCVADDR: 0x00000126  LBEG    : 0x40086260  LEND    : 0x00000000  LCOUNT  : 0x40027c85


Backtrace:0x400f9f85:0x3ffd09200x40083a27:0x3ffd0940 0x40082bc3:0x3ffd0970 0x40087b2e:0x3ffd09a0 




ELF file SHA256: 0000000000000000

Rebooting...
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0xc (RTC_SW_CPU_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40026c60
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x40c
load:0x4004c000,len:0x864
load:0x40050000,len:0x2448
entry 0x4004c184
-- Nixie Tube Clock Rev. 3 Base Project --
Firmware Version: 1.1S
Firmware Release Date: 2021
Author: Wilhelm Zeuschner
www.wizeus.de/nixie-clock
(c) Wilhelm Zeuschner 2020, all rights reserved
Compiled on: Aug 11 2021, 22:57:18
Compiler version: 8.4.0
------------

Guru Meditation Error: Core  0 panic'ed (StoreProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x400f9f88  PS      : 0x00060230  A0      : 0x80083a2a  A1      : 0x3ffd0920
A2      : 0x00000000  A3      : 0x00000068  A4      : 0xfffffc7f  A5      : 0x00002180  
A6      : 0x3ffc67a8  A7      : 0x00000000  A8      : 0x00000100  A9      : 0x00000001
A10     : 0x00000000  A11     : 0x3ffc33c4  A12     : 0x40086260  A13     : 0x00000000  
A14     : 0x3ffc67a8  A15     : 0x3ffc2ff4  SAR     : 0x00000013  EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000126  LBEG    : 0x40086260  LEND    : 0x00000000  LCOUNT  : 0x40027c85  


Backtrace:0x400f9f85:0x3ffd09200x40083a27:0x3ffd0940 0x40082bc3:0x3ffd0970 0x40087b2e:0x3ffd09a0 




ELF file SHA256: 0000000000000000

Rebooting...
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0xc (RTC_SW_CPU_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40026c60
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x40c
load:0x4004c000,len:0x864
load:0x40050000,len:0x2448
entry 0x4004c184
-- Nixie Tube Clock Rev. 3 Base Project --
Firmware Version: 1.1S
Firmware Release Date: 2021
Author: Wilhelm Zeuschner
www.wizeus.de/nixie-clock
(c) Wilhelm Zeuschner 2020, all rights reserved
Compiled on: Aug 11 2021, 22:57:18
Compiler version: 8.4.0
------------

Guru Meditation Error: Core  0 panic'ed (StoreProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x400f9f88  PS      : 0x00060230  A0      : 0x80083a2a  A1      : 0x3ffd0920
A2      : 0x00000000  A3      : 0x00000068  A4      : 0xfffffc7f  A5      : 0x00002180  
A6      : 0x3ffc67a8  A7      : 0x00000000  A8      : 0x00000100  A9      : 0x00000001
A10     : 0x00000000  A11     : 0x3ffc33c4  A12     : 0x40086260  A13     : 0x00000000  
A14     : 0x3ffc67a8  A15     : 0x3ffc2ff4  SAR     : 0x00000013  EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000126  LBEG    : 0x40086260  LEND    : 0x00000000  LCOUNT  : 0x40027c85  


Backtrace:0x400f9f85:0x3ffd09200x40083a27:0x3ffd0940 0x40082bc3:0x3ffd0970 0x40087b2e:0x3ffd09a0




ELF file SHA256: 0000000000000000

Output PIO (qio):
It seems to crash immediately.

ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x1 (POWERON),boot:0x9 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:QIO, clock div:1
load:0x3ffe6100,len:0x498
ets_loader.c 65 
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x7 (TG0WDT_SYS_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40010d75
SPIWP:0xee
mode:QIO, clock div:1
load:0x3ffe6100,len:0x498
ets_loader.c 65
␀ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x10 (RTCWDT_RTC_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:QIO, clock div:1
load:0x3ffe6100,len:0x498
ets_loader.c 65
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x7 (TG0WDT_SYS_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40010d75
SPIWP:0xee
mode:QIO, clock div:1
load:0x3ffe6100,len:0x498
ets_loader.c 65
␀ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x10 (RTCWDT_RTC_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:QIO, clock div:1
load:0x3ffe6100,len:0x498
ets_loader.c 65
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x7 (TG0WDT_SYS_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40010d75
SPIWP:0xee
mode:QIO, clock div:1
load:0x3ffe6100,len:0x498
ets_loader.c 65
␀ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x10 (RTCWDT_RTC_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:QIO, clock div:1
load:0x3ffe6100,len:0x498
ets_loader.c 65
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x7 (TG0WDT_SYS_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40010d75
SPIWP:0xee
mode:QIO, clock div:1
load:0x3ffe6100,len:0x498
ets_loader.c 65 
␀ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x10 (RTCWDT_RTC_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:QIO, clock div:1
load:0x3ffe6100,len:0x498
ets_loader.c 65
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x7 (TG0WDT_SYS_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40010d75
SPIWP:0xee
mode:QIO, clock div:1
load:0x3ffe6100,len:0x498
ets_loader.c 65
␀ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x10 (RTCWDT_RTC_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:QIO, clock div:1
load:0x3ffe6100,len:0x498
ets_loader.c 65
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x7 (TG0WDT_SYS_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40010d75
SPIWP:0xee
mode:QIO, clock div:1
load:0x3ffe6100,len:0x498
ets_loader.c 65
␀ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x10 (RTCWDT_RTC_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:QIO, clock div:1
load:0x3ffe6100,len:0x498
ets_loader.c 65
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x7 (TG0WDT_SYS_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40010d75
SPIWP:0xee
mode:QIO, clock div:1
load:0x3ffe6100,len:0x498
ets_loader.c 65
␀ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x10 (RTCWDT_RTC_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:QIO, clock div:1
load:0x3ffe6100,len:0x498
ets_loader.c 65

Maybe this is not a direct issue of PIO but for what it’s worth, I am using the latest espressif/arduino-esp32 when uploading from the Arduino IDE as well.

Try removing that option.

Start with a known-good sketch like blinky to check whether PlatformIO is stable.

1 Like

I found the issue to be related to an issue with RTCLib.
But I also had to remove

Ah alright. Just FYI in that post you post a backtrace, please add

monitor_filters  = esp32_exception_decoder
build_type = debug

(docs, docs) to the platformio.ini and re-run the crashing sketch, it should now give you the line at which it crashed.

I have done that and updated my comment on GitHub, although I’m not sure as to whether the decoding actually works correctly on the S2 as well :thinking:

Thanks a lot !!!

On https://esp32.com/ no one was able to help me with this.
I was lucky to find this post