HI there,
And Welcome back…
To enable PSRAM on your ESP32-S3 Sense board within PlatformIO, you need to configure your platformio.ini file with specific build flags and board settings. The exact configuration might vary slightly depending on your specific board variant (e.g., N16R8, N8R2) and the type of PSRAM (Quad SPI or Octal SPI).
Here are the common flags and settings to use:
ini
[env:xiao_esp32s3_sense]
platform = espressif32
board = seeed_xiao_esp32s3_sense
framework = arduino
build_flags =
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
board_build.arduino.memory_type = qio_qspi
Explanation of the flags
board = seeed_xiao_esp32s3_sense: This is the board ID specific to the ESP32-S3 Sense, which should pull in most of the correct board-specific settings.build_flags = -DBOARD_HAS_PSRAM: This is a necessary preprocessor macro that tells the Arduino core to recognize and use the on-board PSRAM.build_flags = -mfix-esp32-psram-cache-issue: This flag is a workaround for a specific cache issue related to PSRAM on the ESP32.board_build.arduino.memory_type = qio_qspi: This sets the memory type to Quad I/O (QIO) for both the Flash and PSRAM, which is standard for the ESP32-S3 Sense board.
HTH
GL
PJ ![]()