mirror of
https://github.com/nacabaro/nacapet.git
synced 2026-06-05 14:02:53 +00:00
64 lines
1.7 KiB
INI
64 lines
1.7 KiB
INI
; PlatformIO Project Configuration File
|
|
;
|
|
; Build options: build flags, source filter
|
|
; Upload options: custom upload port, speed and extra flags
|
|
; Library options: dependencies, extra library storages
|
|
; Advanced options: extra scripting
|
|
;
|
|
; Please visit documentation for the other options and examples
|
|
; https://docs.platformio.org/page/projectconf.html
|
|
|
|
[env:s3-full]
|
|
platform = espressif32
|
|
board = 4d_systems_esp32s3_gen4_r8n16
|
|
framework = arduino
|
|
monitor_filters = esp32_exception_decoder
|
|
monitor_speed = 115200
|
|
|
|
lib_deps =
|
|
TFT_eSPI
|
|
fbiego/ESP32Time@^2.0.6
|
|
electroniccats/MPU6050@^1.4.3
|
|
|
|
; --- Hardware & Memory Topology ---
|
|
board_build.arduino.psram = enabled
|
|
board_upload.flash_size = 16MB
|
|
board_build.partitions = default_16MB.csv
|
|
|
|
; FIX 2: Explicitly matches the 'mode:DIO' your ROM is reporting
|
|
board_build.flash_mode = dio
|
|
board_build.arduino.memory_type = dio_opi
|
|
|
|
build_flags =
|
|
-DBOARD_HAS_PSRAM
|
|
; FIX 1: Forces all Serial.print logs to stay on the hardware UART port
|
|
-DARDUINO_USB_CDC_ON_BOOT=0
|
|
-DDEV_UNIT
|
|
-DDEBUG
|
|
|
|
upload_port = COM8
|
|
monitor_port = COM8
|
|
|
|
[env:s3-supermini]
|
|
platform = espressif32
|
|
board = esp32-s3-devkitc-1
|
|
framework = arduino
|
|
|
|
; Flash and PSRAM settings for 4MB Flash / 2MB PSRAM (Quad SPI)
|
|
board_upload.flash_size = 4MB
|
|
board_build.arduino.memory_type = qio_qspi
|
|
board_build.flash_mode = qio
|
|
board_build.psram_type = qio
|
|
|
|
; Required flag to enable PSRAM in code
|
|
build_flags =
|
|
-DBOARD_HAS_PSRAM
|
|
-DARDUINO_USB_CDC_ON_BOOT=1
|
|
-DARDUINO_USB_MODE=1
|
|
-DDEV_UNIT
|
|
|
|
; Ensure partition table fits 4MB
|
|
board_build.partitions = default.csv
|
|
lib_deps = TFT_eSPI, fbiego/ESP32Time@^2.0.6, electroniccats/MPU6050@^1.4.3
|
|
upload_port = COM5
|
|
monitor_port = COM5 |