mirror of
https://github.com/m5stack/M5Tools.git
synced 2026-09-17 18:28:26 -07:00
The moving stable alias currently delivers 55.03.311, whose arduino-core 3.3.11 makes the ESP32 classic environment overflow IRAM0 by about 1.4 kB at link time, so a fresh checkout no longer builds for Core2/Tough. Pin the platform to 55.03.37, the release the project is verified against.
45 lines
1.3 KiB
INI
45 lines
1.3 KiB
INI
[platformio]
|
|
default_envs = m5tools_core2_tough
|
|
|
|
[env]
|
|
; 全 env で同一の platform を使う。異なる platform を混在させると
|
|
; framework-arduinoespressif32 のディレクトリを奪い合い、env 切替のたびに
|
|
; 再取得が走って FRAMEWORK_DIR の解決に失敗することがある。
|
|
; stable エイリアスは中身が随時進むため、検証済みのリリースに固定する
|
|
; (55.03.311 では arduino-core 3.3.11 になり ESP32 classic の IRAM が溢れる)
|
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.37/platform-espressif32.zip
|
|
framework = arduino
|
|
monitor_speed = 115200
|
|
build_src_filter =
|
|
+<*>
|
|
|
|
; M5Unified はこのブランチが前提とする develop のコミットに固定する。
|
|
; 対応するリリースが出たらバージョン指定へ差し替える。
|
|
lib_deps =
|
|
https://github.com/m5stack/M5Unified.git#97d5fa09d6b2713c1cd2fec6be8d697353cc363b
|
|
m5stack/M5GFX@^0.2.27
|
|
|
|
[env:m5tools_core2_tough]
|
|
board = m5stack-core2
|
|
|
|
build_flags =
|
|
-DCORE_DEBUG_LEVEL=3
|
|
-std=gnu++17
|
|
|
|
build_unflags =
|
|
-std=gnu++11
|
|
-DBOARD_HAS_PSRAM
|
|
|
|
[env:m5tools_tough_c5]
|
|
board = esp32-c5-devkitc-1
|
|
board_build.partitions = partitions_tough_c5.csv
|
|
|
|
build_flags =
|
|
-DCORE_DEBUG_LEVEL=3
|
|
-std=gnu++17
|
|
-DARDUINO_USB_MODE=1
|
|
-DARDUINO_USB_CDC_ON_BOOT=1
|
|
|
|
build_unflags =
|
|
-std=gnu++11
|