Looking for Platformio.ini settings for ELECROW ESP32s3 7" HMI
Hello,
I'm migrating from the Arduino IDE to Platformio.
I'm looking for Platformio.ini settings for the ESP32-S3-wroom-1-N4R8 used in the basic 7" display DIS08070H.
This is what I have currently in the platform.ini:
; Flash: 4MB QD, PSRAM: 8MB OT
[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
; Serial monitor settings
monitor_speed = 115200
upload_speed = 921600
; Specify 8MB PSRAM (OPI PSRAM)
board_build.arduino.memory_type = qio_opi
board_build.psram_type = opi
board_upload.flash_size = 4MB
; PSRAM flags
build_flags =
-DBOARD_HAS_PSRAM
-DARDUINO_USB_CDC_ON_BOOT=1
; Enable 8MB PSRAM
-DCONFIG_SPIRAM_SIZE=0x800000
; LVGL with PSRAM
-DLV_CONF_INCLUDE_SIMPLE
-DLV_MEM_CUSTOM=1
board_build.partitions = default_8MB.csv
board_build.f_flash = 80000000L
board_build.flash_mode = qio
board_build.f_cpu = 240000000L
; IMPORTANT: Exclude ui_sources.c
build_src_filter = +<*> -<ui_sources.c>
; Libraries
lib_deps =
lvgl/lvgl@^8.3.11
lovyan03/LovyanGFX@^1.1.16
tamctec/TAMC_GT911@^1.0.2
adafruit/Adafruit BME280 Library@^2.2.2
adafruit/Adafruit Unified Sensor@^1.1.14
adafruit/Adafruit BusIO@^1.14.5
Any help would be wonderful.
Rick

Comments
Is it not working? It looks pretty good to me, maybe more than you need.
I haven't checked, but my *.ini file looks very similar, and works fine.
I did change it so most of the libraries point to one location, instead of installing the libraries every time, for every project. (depending on the project, that can eat hundreds of megabytes per project).
Microguy,
This is an interesting problem. I’ve tried many options in the .ini file for getting the 8mb of PSRAM to work. Everything results in a panic dump. The same code compiled with the Arduino IDE works great.
Rick