huge app due to partition size issues

This commit is contained in:
Shailen Sobhee 2026-03-30 14:52:40 +02:00
parent ff031eec92
commit ff1bb80adf
3 changed files with 38 additions and 12 deletions

View file

@ -1,6 +1,5 @@
//var hst = '192.168.1.208'; //var hst = '192.168.1.208';
var hst = '192.168.1.152'; var hst = '192.168.178.20';
//var hst = '192.168.1.159';
var _rooms = [{ roomId: 0, name: 'Home' }]; var _rooms = [{ roomId: 0, name: 'Home' }];
var errors = [ var errors = [

View file

@ -1,7 +1,7 @@
# Name, Type, SubType, Offset, Size # Name, Type, SubType, Offset, Size
nvs, data, nvs, 0x9000, 0x5000 nvs, data, nvs, 0x9000, 0x5000
otadata, data, ota, 0xE000, 0x2000 otadata, data, ota, 0xE000, 0x2000
app0, app, ota_0, 0x10000, 0x180000 phy_init, data, phy, 0x10000, 0x1000
app1, app, ota_1, 0x190000, 0x180000 app0, app, factory, 0x20000, 0x300000
spiffs, data, spiffs, 0x310000, 0x0E0000 spiffs, data, spiffs, 0x320000, 0xE0000
coredump, data, coredump, 0x3F0000, 0x10000 coredump, data, coredump, 0x3F0000, 0x10000
1 # Name Type SubType Offset Size
2 nvs data nvs 0x9000 0x5000
3 otadata data ota 0xE000 0x2000
4 app0 phy_init app data ota_0 phy 0x10000 0x180000 0x1000
5 app1 app0 app ota_1 factory 0x190000 0x20000 0x180000 0x300000
6 spiffs data spiffs 0x310000 0x320000 0x0E0000 0xE0000
7 coredump data coredump 0x3F0000 0x10000

View file

@ -18,8 +18,11 @@ lib_deps =
bblanchon/ArduinoJson@^7.2.2 bblanchon/ArduinoJson@^7.2.2
lsatan/SmartRC-CC1101-Driver-Lib@^2.5.7 lsatan/SmartRC-CC1101-Driver-Lib@^2.5.7
knolleary/PubSubClient@^2.8 knolleary/PubSubClient@^2.8
esp32async/ESPAsyncWebServer@^3.10.3 ; esp32async/ESPAsyncWebServer@^3.10.3
esp32async/AsyncTCP@^3.4.10 ; esp32async/AsyncTCP@^3.4.10
; 4. ESP32-C6 / Arduino 3.0 Compatible Async Stack (CRITICAL)
https://github.com/mathieucarbou/AsyncTCP.git
https://github.com/mathieucarbou/ESPAsyncWebServer.git
extra_scripts = extra_scripts =
pre:minify.py pre:minify.py
post:archive_elf.py post:archive_elf.py
@ -55,12 +58,36 @@ board_build.partitions = esp32_3MB.csv
board = esp32-s3-devkitc-1 board = esp32-s3-devkitc-1
[env:esp32c6] [env:esp32c6]
platform = https://github.com/mnowak32/platform-espressif32.git#boards/seeed_xiao_esp32c6 ; platform = https://github.com/mnowak32/platform-espressif32.git#boards/seeed_xiao_esp32c6
platform_packages = ; platform_packages =
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.4 ; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.4
framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.4/esp32-arduino-libs-3.0.4.zip ; framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.4/esp32-arduino-libs-3.0.4.zip
; board = seeed_xiao_esp32c6
; board_build.partitions = esp32_3MB.csv
; build_flags =
; ${env.build_flags}
; -I${platformio.packages_dir}/framework-arduinoespressif32/libraries/Network/src
; platform = espressif32 ; Not working
platform = https://github.com/pioarduino/platform-espressif32
# Ensure we are using the 3.0+ core
; platform_packages =
; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.7
; framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.7/esp32-arduino-libs-3.0.7.zip
board = seeed_xiao_esp32c6 board = seeed_xiao_esp32c6
; board = esp32-c6-devkitc-1
lib_deps =
bblanchon/ArduinoJson@^7.2.2
lsatan/SmartRC-CC1101-Driver-Lib@^2.5.7
knolleary/PubSubClient@^2.8
https://github.com/ESP32Async/AsyncTCP.git
https://github.com/ESP32Async/ESPAsyncWebServer.git
; platform_packages =
; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.7
board_build.partitions = esp32_3MB.csv board_build.partitions = esp32_3MB.csv
build_flags = build_flags =
${env.build_flags} ${env.build_flags}
-I${platformio.packages_dir}/framework-arduinoespressif32/libraries/Network/src -I${platformio.packages_dir}/framework-arduinoespressif32/libraries/Network/src