Files
trail-mate/platformio.ini
T
liu weikai 400c5ed996 fix(esp): reduce RAM pressure and TDeck display stalls
Tune Arduino task stacks and board env flags to recover internal RAM for BLE startup.

Avoid synchronous boot UI rendering on Arduino loopTask and move large board singletons toward PSRAM where available.

Improve TDeck/Pager display responsiveness by restoring practical LVGL DMA buffers, using SPI pixel writes, disabling transition animations, and testing TDeck display SPI at 80MHz.
2026-06-26 16:20:37 +08:00

90 lines
2.2 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
[platformio]
default_envs = tlora_pager_sx1262
extra_configs =
variants/*/*.ini
variants/*/*/*.ini
variants/*/*/platformio.ini
boards_dir = boards
src_dir = src
[env]
extra_scripts =
pre:scripts/platformio-pre.py
post:scripts/platformio-post.py
monitor_speed = 115200
monitor_filters =
default
esp32_exception_decoder
[arduino_base]
extends = env
framework = arduino
platform = espressif32@6.10.0
upload_speed = 921600
board_build.filesystem = fatfs
board_build.partitions = partitions.csv
build_unflags =
-std=gnu++11
build_flags =
-D CORE_DEBUG_LEVEL=0
-std=gnu++17
-D LV_CONF_INCLUDE_SIMPLE
-D LV_USE_SNAPSHOT=1
-D HAS_GPS=1
-D HAS_SD=1
-D HAS_PSRAM=1
-D SDFAT_FILE_TYPE=3
-D RADIOLIB_EXCLUDE_RF69
-D RADIOLIB_EXCLUDE_SX1231
-D RADIOLIB_EXCLUDE_RFM2X
-D RADIOLIB_EXCLUDE_SX127X
-D RADIOLIB_EXCLUDE_AFSK
-D RADIOLIB_EXCLUDE_AX25
-D RADIOLIB_EXCLUDE_HELLSCHREIBER
-D RADIOLIB_EXCLUDE_MORSE
-D RADIOLIB_EXCLUDE_RTTY
-D RADIOLIB_EXCLUDE_SSTV
-D RADIOLIB_EXCLUDE_DIRECT_RECEIVE
-D RADIOLIB_EXCLUDE_APRS
-D RADIOLIB_EXCLUDE_BELL
-Wnarrowing
lib_extra_dirs =
${PROJECT_DIR}/modules
${PROJECT_DIR}/apps
${PROJECT_DIR}/boards
${PROJECT_DIR}/platform/esp
${PROJECT_DIR}/platform/esp/boards
${PROJECT_DIR}/third_party
lib_ignore =
gat562_mesh_evb_pro
boards_gat562_mesh_evb_pro
trailmate-nrf52-node-app-shell
ui_mono
platform_nrf52_arduino_common
SD
lib_deps =
lvgl/lvgl @ 9.4.0
jgromes/RadioLib @ 7.4.0
lewisxhe/XPowersLib@0.3.1
lewisxhe/SensorLib @ 0.3.3
mikalhart/TinyGPSPlus @ 1.0.3
earlephilhower/ESP8266Audio @ 2.0.0
h2zero/NimBLE-Arduino @ 2.2.3
greiman/SdFat @ 2.3.1
nanopb/nanopb @ ^0.4.8
rweather/Crypto @ 0.4.0
; NOTE: Board-specific environments (including tlora_pager_sx1262)
; are defined in variants/*/envs/*.ini and loaded via extra_configs above.
; Keep root config focused on shared settings only.