diff --git a/Documentation/platforms/xtensa/esp32s3/boards/esp32s3-devkit/index.rst b/Documentation/platforms/xtensa/esp32s3/boards/esp32s3-devkit/index.rst index 07b3e1b8ab..3789e6bdfe 100644 --- a/Documentation/platforms/xtensa/esp32s3/boards/esp32s3-devkit/index.rst +++ b/Documentation/platforms/xtensa/esp32s3/boards/esp32s3-devkit/index.rst @@ -471,6 +471,40 @@ psram_octal Similar to the ```psram_quad``` configuration but using the SPIRAM interface in octal mode. +psram_usrheap +------------- + +This configuration enables allocating the userspace heap into SPI RAM and reserves the +internal RAM for kernel heap. + +Important: this config defaults to flash QUAD mode, and should be changed if the board +runs on OCTAL mode by setting ``CONFIG_ESP32S3_SPIRAM_MODE_OCT``. If wrong, a SPIRAM error +will appear during boot. + +To check the flash type, run the following command:: + + $ esptool.py flash_id + esptool.py v4.8.1 + Found 33 serial ports + Serial port /dev/ttyUSB0 + Connecting.... + Detecting chip type... ESP32-S3 + Chip is ESP32-S3 (QFN56) (revision v0.1) + Features: WiFi, BLE, Embedded PSRAM 2MB (AP_3v3) + Crystal is 40MHz + MAC: 7c:df:a1:e5:d8:5c + Uploading stub... + Running stub... + Stub running... + Manufacturer: 20 + Device: 4017 + Detected flash size: 8MB + Flash type set in eFuse: quad (4 data lines) + Flash voltage set by eFuse to 3.3V + Hard resetting via RTS pin... + +The flash type can be seen on the "Flash type set in eFuse: quad" line. + pwm --- diff --git a/boards/Kconfig b/boards/Kconfig index 3eb829beeb..356d8d80af 100644 --- a/boards/Kconfig +++ b/boards/Kconfig @@ -431,7 +431,7 @@ config ARCH_BOARD_FRANZININHO_WIFI config ARCH_BOARD_ESP32S3_DEVKIT bool "Espressif ESP32-S3 DevKit" - depends on ARCH_CHIP_ESP32S3WROOM1N4 || ARCH_CHIP_ESP32S3MINI1N8 || ARCH_CHIP_ESP32S3WROOM1N16R8 || ARCH_CHIP_ESP32S3WROOM2N16R8V || ARCH_CHIP_ESP32S3WROOM2N32R8V || ARCH_CHIP_ESP32S3CUSTOM || ARCH_CHIP_ESP32S3WROOM1N8R8 + depends on ARCH_CHIP_ESP32S3WROOM1N4 || ARCH_CHIP_ESP32S3MINI1N8 || ARCH_CHIP_ESP32S3WROOM1N8R2 || ARCH_CHIP_ESP32S3WROOM1N16R8 || ARCH_CHIP_ESP32S3WROOM2N16R8V || ARCH_CHIP_ESP32S3WROOM2N32R8V || ARCH_CHIP_ESP32S3CUSTOM || ARCH_CHIP_ESP32S3WROOM1N8R8 select ARCH_HAVE_LEDS select ARCH_HAVE_BUTTONS select ARCH_HAVE_IRQBUTTONS if ESP32S3_GPIO_IRQ diff --git a/boards/xtensa/esp32s3/esp32s3-devkit/configs/psram_usrheap/defconfig b/boards/xtensa/esp32s3/esp32s3-devkit/configs/psram_usrheap/defconfig index 75fb23a177..40c9d02f65 100644 --- a/boards/xtensa/esp32s3/esp32s3-devkit/configs/psram_usrheap/defconfig +++ b/boards/xtensa/esp32s3/esp32s3-devkit/configs/psram_usrheap/defconfig @@ -14,7 +14,7 @@ CONFIG_ARCH_BOARD_COMMON=y CONFIG_ARCH_BOARD_ESP32S3_DEVKIT=y CONFIG_ARCH_CHIP="esp32s3" CONFIG_ARCH_CHIP_ESP32S3=y -CONFIG_ARCH_CHIP_ESP32S3WROOM2N16R8V=y +CONFIG_ARCH_CHIP_ESP32S3WROOM1N8R2=y CONFIG_ARCH_INTERRUPTSTACK=2048 CONFIG_ARCH_STACKDUMP=y CONFIG_ARCH_XTENSA=y @@ -23,7 +23,6 @@ CONFIG_BUILTIN=y CONFIG_ESP32S3_FLASH_FREQ_80M=y CONFIG_ESP32S3_SPIFLASH=y CONFIG_ESP32S3_SPIRAM=y -CONFIG_ESP32S3_SPIRAM_MODE_OCT=y CONFIG_ESP32S3_SPIRAM_USER_HEAP=y CONFIG_ESP32S3_SPI_FLASH_SUPPORT_PSRAM_STACK=y CONFIG_ESP32S3_UART0=y