Closed FreezyExp closed 11 months ago
[flash_4mb_no_ota]
board_upload.flash_size = 4MB
board_upload.maximum_size = 4194304
board_build.partitions = user_setups/esp32/partitions_4MB_NO_OTA.csv
for your board, extend from this partition profile
[env:esp32-2432s028_4MB_NO_OTA] extends = esp32-2432s028 flash_4mb_no_ota
# partitions_4MB_NO_OTA.csv
# Two application partitions of 1.687 MB
# 560 kB filesystem
#
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 36K, 20K,
otadata, data, ota, 56K, 8K,
app0, app, ota_0, 64K, 3456K,
config, data, nvs, 3520K, 16K,
spiffs, data, spiffs, 3536K, 560K,
Got it building again, thanks fvanroie on Discord for suggesting this.
Is your feature request related to a problem? Please describe. Trying to add audio libraries to openHASP, the application would no longer fit into the partition size allotted.
Describe the solution you'd like Adding a configuration to disable OTA, switching the 4mb partition scheme to a NO_OTA version that offers more size for the application.
Describe alternatives you've considered I tried alternative audio libraries, both made the application too large to fit.
I could also try to remove some other components, but I would not yet know where to start.
Additional context Placing OTA related code and references in preprocessor statements could further reduce the applications sie.