fix: update platformio.ini — OTA partitions, NimBLE, PSRAM flags
- Switch board to m5stack-timer-cam (confirmed in pio boards) - Pin platform to espressif32@6.6.0 - Replace huge_app.csv with custom partitions_8mb_ota.csv (8MB + OTA) - Add -DCONFIG_BT_NIMBLE_ENABLED=1 and -DCONFIG_SPIRAM_USE_MALLOC=1 - Add h2zero/NimBLE-Arduino@^1.4.2 to lib_deps - Raise CORE_DEBUG_LEVEL from 1 → 3 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
6
firmware/partitions_8mb_ota.csv
Normal file
6
firmware/partitions_8mb_ota.csv
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# Name, Type, SubType, Offset, Size
|
||||||
|
nvs, data, nvs, 0x9000, 0x6000
|
||||||
|
otadata, data, ota, 0xf000, 0x2000
|
||||||
|
app0, app, ota_0, 0x10000, 0x300000
|
||||||
|
app1, app, ota_1, 0x310000, 0x300000
|
||||||
|
spiffs, data, spiffs, 0x610000, 0x1F0000
|
||||||
|
@@ -3,19 +3,22 @@
|
|||||||
default_envs = timercam
|
default_envs = timercam
|
||||||
|
|
||||||
[env:timercam]
|
[env:timercam]
|
||||||
platform = espressif32
|
platform = espressif32@6.6.0
|
||||||
board = esp32dev
|
board = m5stack-timer-cam
|
||||||
framework = arduino
|
framework = arduino
|
||||||
board_build.partitions = huge_app.csv
|
board_build.partitions = partitions_8mb_ota.csv
|
||||||
build_flags =
|
build_flags =
|
||||||
-DBOARD_HAS_PSRAM
|
-DBOARD_HAS_PSRAM
|
||||||
-mfix-esp32-psram-cache-issue
|
-mfix-esp32-psram-cache-issue
|
||||||
-DCORE_DEBUG_LEVEL=1
|
-DCORE_DEBUG_LEVEL=3
|
||||||
|
-DCONFIG_BT_NIMBLE_ENABLED=1
|
||||||
|
-DCONFIG_SPIRAM_USE_MALLOC=1
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
upload_speed = 921600
|
upload_speed = 921600
|
||||||
lib_deps =
|
lib_deps =
|
||||||
tzapu/WiFiManager@^2.0.17
|
tzapu/WiFiManager@^2.0.17
|
||||||
bblanchon/ArduinoJson@^7.0.0
|
bblanchon/ArduinoJson@^7.0.0
|
||||||
|
h2zero/NimBLE-Arduino@^1.4.2
|
||||||
|
|
||||||
[env:native]
|
[env:native]
|
||||||
platform = native
|
platform = native
|
||||||
|
|||||||
Reference in New Issue
Block a user