PlatformIO Community

How do i use psram in esp32-s3-wroom-1

arduino ide config
arduino
vscode platformio board json

{
  "build": {
    "arduino":{
      "ldscript": "esp32s3_out.ld",
      "partitions": "default_16MB.csv"
    },
    "core": "esp32",
    "extra_flags": [
        "-DARDUINO_RUNNING_CORE=1",
        "-DARDUINO_EVENT_RUNNING_CORE=1",
        "-DBOARD_HAS_PSRAM",
        "-DESP32S3_DEV",
        "-DARDUINO_USB_MODE=1",
        "-DARDUINO_USB_CDC_ON_BOOT=1"
    ],
    "f_cpu": "240000000L",
    "f_flash": "80000000L",
    "flash_mode": "dio",
    "hwids": [
      [
        "0X303A",
        "0x1001"
      ]
    ],
    "mcu": "esp32s3",
    "variant": "esp32s3"
  },
  "connectivity": [
    "wifi"
  ],
  "debug": {
    "default_tool": "esp-builtin",
    "onboard_tools": [
      "esp-builtin"
    ],
    "openocd_target": "esp32s3.cfg"
  },
  "frameworks": [
    "arduino",
    "espidf"
  ],
  "name": "Espressif ESP32-S3-DevKitC-1-N8R16",
  "upload": {
    "flash_size": "16MB",
    "maximum_ram_size": 532480,
    "maximum_size": 16777216,
    "require_upload_port": true,
    "speed": 921600
  },
  "url": "https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/hw-reference/esp32s3/user-guide-devkitc-1.html",
  "vendor": "Espressif"
}

serial output
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd0108,len:0x39c
load:0x403b6000,len:0x9a4
load:0x403ba000,len:0x2868
SHA-256 comparison failed:
Calculated: 96edcbf24307eec974a15a9c36833138c4d40b02a8c0319c7b22c9c6b2fd11eb
Expected: 867c0d6cb8d08f5a22bebcb1e4a5d457c2700a1c6b76abeb4d778eadcc3446e2
Attempting to boot anyway…
entry 0x403b61c0
E (99) psram: PSRAM ID read error: 0x00ffffff
[ 99][W][esp32-hal-psram.c:71] psramInit(): PSRAM init failed!

esp32 s3 wroom 1 n8r16

Since you selected OPI PSRAM here, in the Arduino that sets

and the board also predefines booting from the QIO QSPI flash here. The Arduino-ESP32 builder script respects the option

(which in turns selects that one of these folders is used).

So, your board JSON file should be

{
  "build": {
    "arduino":{
      "ldscript": "esp32s3_out.ld",
      "partitions": "default_16MB.csv",
      "memory_type": "qio_opi"
    },
    "core": "esp32",
    "extra_flags": [
        "-DARDUINO_RUNNING_CORE=1",
        "-DARDUINO_EVENT_RUNNING_CORE=1",
        "-DBOARD_HAS_PSRAM",
        "-DESP32S3_DEV",
        "-DARDUINO_USB_MODE=1",
        "-DARDUINO_USB_CDC_ON_BOOT=1"
    ],
    "f_cpu": "240000000L",
    "f_flash": "80000000L",
    "flash_mode": "dio",
    "hwids": [
      [
        "0X303A",
        "0x1001"
      ]
    ],
    "mcu": "esp32s3",
    "variant": "esp32s3"
  },
  "connectivity": [
    "wifi"
  ],
  "debug": {
    "default_tool": "esp-builtin",
    "onboard_tools": [
      "esp-builtin"
    ],
    "openocd_target": "esp32s3.cfg"
  },
  "frameworks": [
    "arduino",
    "espidf"
  ],
  "name": "Espressif ESP32-S3-DevKitC-1-N8R16",
  "upload": {
    "flash_size": "16MB",
    "maximum_ram_size": 532480,
    "maximum_size": 16777216,
    "require_upload_port": true,
    "speed": 921600
  },
  "url": "https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/hw-reference/esp32s3/user-guide-devkitc-1.html",
  "vendor": "Espressif"
}
1 Like

I used your configuration file but it printed the following result

Processing esp32-s3-n8r16 (platform: espressif32; board: esp32-s3-wroom-n8r16-build; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-s3-wroom-n8r16-build.html
PLATFORM: Espressif 32 (5.0.0) > Espressif ESP32-S3-DevKitC-1-N8R16
HARDWARE: ESP32S3 240MHz, 520KB RAM, 16MB Flash
DEBUG: Current (esp-builtin) On-board (esp-builtin) External (cmsis-dap, esp-bridge, 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.20003.220626 (2.0.3) 
 - tool-esptoolpy @ 1.30300.0 (3.3.0) 
 - toolchain-riscv32-esp @ 8.4.0+2021r2-patch3 
 - toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch3
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 32 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\esp32-s3-n8r16\src\main.cpp.o
Compiling .pio\build\esp32-s3-n8r16\FrameworkArduino\Esp.cpp.o
Compiling .pio\build\esp32-s3-n8r16\FrameworkArduino\FirmwareMSC.cpp.o
Compiling .pio\build\esp32-s3-n8r16\FrameworkArduino\FunctionalInterrupt.cpp.o
Compiling .pio\build\esp32-s3-n8r16\FrameworkArduino\HWCDC.cpp.o
Compiling .pio\build\esp32-s3-n8r16\FrameworkArduino\HardwareSerial.cpp.o
Compiling .pio\build\esp32-s3-n8r16\FrameworkArduino\IPAddress.cpp.o
Compiling .pio\build\esp32-s3-n8r16\FrameworkArduino\IPv6Address.cpp.o
Compiling .pio\build\esp32-s3-n8r16\FrameworkArduino\MD5Builder.cpp.o
Compiling .pio\build\esp32-s3-n8r16\FrameworkArduino\Print.cpp.o
In file included from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\sys\reent.h:503,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
Compiling .pio\build\esp32-s3-n8r16\FrameworkArduino\Stream.cpp.o
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\stdio.h:60,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:27,
                 from src/main.cpp:1:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory 

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

 #include <sdkconfig.h>
          ^~~~~~~~~~~~~
compilation terminated.
Compiling .pio\build\esp32-s3-n8r16\FrameworkArduino\StreamString.cpp.o
Compiling .pio\build\esp32-s3-n8r16\FrameworkArduino\Tone.cpp.o
In file included from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/HWCDC.cpp:14:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/USB.h:16:10: fatal error: sdkconfig.h: No such file or directory

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

 #include "sdkconfig.h"
          ^~~~~~~~~~~~~
compilation terminated.
In file included from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/FirmwareMSC.h:17,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/FirmwareMSC.cpp:14:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/USBMSC.h:18:10: fatal error: sdkconfig.h: No such file or directory

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

 #include "sdkconfig.h"
          ^~~~~~~~~~~~~
compilation terminated.
Compiling .pio\build\esp32-s3-n8r16\FrameworkArduino\USB.cpp.o
Compiling .pio\build\esp32-s3-n8r16\FrameworkArduino\USBCDC.cpp.o
Compiling .pio\build\esp32-s3-n8r16\FrameworkArduino\USBMSC.cpp.o
Compiling .pio\build\esp32-s3-n8r16\FrameworkArduino\WMath.cpp.o
Compiling .pio\build\esp32-s3-n8r16\FrameworkArduino\WString.cpp.o
Compiling .pio\build\esp32-s3-n8r16\FrameworkArduino\base64.cpp.o
Compiling .pio\build\esp32-s3-n8r16\FrameworkArduino\cbuf.cpp.o
*** [.pio\build\esp32-s3-n8r16\src\main.cpp.o] Error 1
*** [.pio\build\esp32-s3-n8r16\FrameworkArduino\HWCDC.cpp.o] Error 1
*** [.pio\build\esp32-s3-n8r16\FrameworkArduino\FirmwareMSC.cpp.o] Error 1
In file included from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/USB.cpp:14:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/USB.h:16:10: fatal error: sdkconfig.h: No such file or directory

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

 #include "sdkconfig.h"
          ^~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32-s3-n8r16\FrameworkArduino\USB.cpp.o] Error 1
In file included from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\sys\reent.h:503,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\stdio.h:60,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:27,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/Esp.cpp:20:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory 

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

 #include <sdkconfig.h>
          ^~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32-s3-n8r16\FrameworkArduino\Esp.cpp.o] Error 1
In file included from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/USBCDC.cpp:14:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/USB.h:16:10: fatal error: sdkconfig.h: No such file or directory

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

 #include "sdkconfig.h"
          ^~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32-s3-n8r16\FrameworkArduino\USBCDC.cpp.o] Error 1
In file included from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\sys\reent.h:503,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\stdlib.h:18,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\cstdlib:75,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\stdlib.h:36,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/HardwareSerial.cpp:1:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory 

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

 #include <sdkconfig.h>
          ^~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32-s3-n8r16\FrameworkArduino\HardwareSerial.cpp.o] Error 1
In file included from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/USBMSC.cpp:14:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/USBMSC.h:18:10: fatal error: sdkconfig.h: No such file or directory

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

 #include "sdkconfig.h"
          ^~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32-s3-n8r16\FrameworkArduino\USBMSC.cpp.o] Error 1
In file included from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\sys\reent.h:503,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\stdio.h:60,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:27,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/IPAddress.cpp:20:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory 

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

 #include <sdkconfig.h>
          ^~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32-s3-n8r16\FrameworkArduino\IPAddress.cpp.o] Error 1
In file included from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\sys\reent.h:503,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\stdlib.h:18,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\cstdlib:75,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\stdlib.h:36,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/Print.cpp:24:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory 

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

 #include <sdkconfig.h>
          ^~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32-s3-n8r16\FrameworkArduino\Print.cpp.o] Error 1
In file included from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\sys\reent.h:503,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\stdio.h:60,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:27,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.cpp:23:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory 

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

 #include <sdkconfig.h>
          ^~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32-s3-n8r16\FrameworkArduino\Stream.cpp.o] Error 1
In file included from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\sys\reent.h:503,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\stdio.h:60,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:27,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/IPv6Address.cpp:20:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory 

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

 #include <sdkconfig.h>
          ^~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32-s3-n8r16\FrameworkArduino\IPv6Address.cpp.o] Error 1
In file included from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\sys\reent.h:503,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\stdio.h:60,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:27,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/MD5Builder.cpp:19:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory 

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

 #include <sdkconfig.h>
          ^~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32-s3-n8r16\FrameworkArduino\MD5Builder.cpp.o] Error 1
In file included from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\sys\reent.h:503,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\stdio.h:60,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:27,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/Tone.cpp:1:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory 

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

 #include <sdkconfig.h>
          ^~~~~~~~~~~~~
compilation terminated.
In file included from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\sys\reent.h:503,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\stdio.h:60,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:27,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/StreamString.cpp:23:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory 

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

 #include <sdkconfig.h>
          ^~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32-s3-n8r16\FrameworkArduino\Tone.cpp.o] Error 1
*** [.pio\build\esp32-s3-n8r16\FrameworkArduino\StreamString.cpp.o] Error 1
In file included from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\sys\reent.h:503,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\stdlib.h:18,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\cstdlib:75,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\stdlib.h:36,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/WMath.cpp:27:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory 

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

 #include <sdkconfig.h>
          ^~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32-s3-n8r16\FrameworkArduino\WMath.cpp.o] Error 1
In file included from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\sys\reent.h:503,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\string.h:11,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/cbuf.h:26,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/cbuf.cpp:21:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory 

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

 #include <sdkconfig.h>
          ^~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32-s3-n8r16\FrameworkArduino\cbuf.cpp.o] Error 1
In file included from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\sys\reent.h:503,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\stdio.h:60,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:27,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/base64.cpp:25:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory 

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

 #include <sdkconfig.h>
          ^~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32-s3-n8r16\FrameworkArduino\base64.cpp.o] Error 1
In file included from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\sys\reent.h:503,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\stdio.h:60,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:27,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/WString.cpp:24:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory 

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

 #include <sdkconfig.h>
          ^~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32-s3-n8r16\FrameworkArduino\WString.cpp.o] Error 1
In file included from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\sys\reent.h:503,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/sys/reent.h:17,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\sys-include\wchar.h:6,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\cwchar:44,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\bits\postypes.h:40,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\bits\char_traits.h:40,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\string:40,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\stdexcept:39,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\array:39,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\tuple:39,
                 from c:\users\index\.platformio\packages\toolchain-xtensa-esp32s3\xtensa-esp32s3-elf\include\c++\8.4.0\functional:54,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/FunctionalInterrupt.h:11,
                 from C:/Users/index/.platformio/packages/framework-arduinoespressif32/cores/esp32/FunctionalInterrupt.cpp:8:
C:/Users/index/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory 

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

 #include <sdkconfig.h>
          ^~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32-s3-n8r16\FrameworkArduino\FunctionalInterrupt.cpp.o] Error 1
============================================================================= [FAILED] Took 2.31 seconds =============================================================================

That’s weird, if the memory selection is alright then it should have added arduino-esp32/tools/sdk/esp32s3/qio_opi/include at master · espressif/arduino-esp32 · GitHub to the searchpath where the sdkconfig.h is. Let me double check.

1 Like

I am so sorry that I have checked the difference between my directory and the directory you gave me, and there is no corresponding path for my directory. I am trying to fix my problem.

It’s my problem, I don’t have the corresponding directory, it can be used normally after I add it, I thank you very much.

Is your platform up to date? This must work without doing any local modifications. Please open a CLI and pio pkg update -g -p espressif32 and retry.

Ah, actually that is not enough. As you can see in History for tools/sdk/esp32s3/qio_opi/include - espressif/arduino-esp32 · GitHub, the file is extremely new, only added 19 days ago with Arduino-ESP32 2.0.4. However, per Commits · platformio/platform-espressif32 · GitHub, the current git version also has 2.0.4 support, so instead of writing

platform = espressif32

write

platform = https://github.com/platformio/platform-espressif32.git

in the platformio.ini.

Yes, I succeeded after modifying the local file, I will try the new method you provided again, thank you again. That helped me a lot.