Enable OPI PSRAM and 16MB QIO80MHz of FLASH

For flash mode and frequency see

https://docs.platformio.org/en/latest/platforms/espressif32.html#flash-frequency

for PSRAM / Flash selection see enabling macro here and

I.e., set

board_build.arduino.memory_type = ...

in accordance to the right folder used here.

Note how the boards.txt says

esp32s3.menu.PSRAM.opi=OPI PSRAM
esp32s3.menu.PSRAM.opi.build.defines=-DBOARD_HAS_PSRAM
esp32s3.menu.PSRAM.opi.build.psram_type=opi
..
esp32s3.menu.FlashMode.qio=QIO 80MHz
esp32s3.menu.FlashMode.qio.build.flash_mode=dio
esp32s3.menu.FlashMode.qio.build.boot=qio
esp32s3.menu.FlashMode.qio.build.boot_freq=80m
esp32s3.menu.FlashMode.qio.build.flash_freq=80m
..
esp32s3.build.memory_type={build.boot}_{build.psram_type}

So with that info you’d have to try

[env:esp32s3dev]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
build_flags = -DBOARD_HAS_PSRAM
board_build.arduino.memory_type = qio_opi
board_build.f_flash = 80000000L
board_build.flash_mode = qio
; 16MB
board_upload.flash_size = 16MB
1 Like