Beginner's ota setup question
Posted: Fri Jul 04, 2025 3:57 am
Hello, seniors
I'm using esp32-wroom-32e. The internal flash is 4MB, and I'm also installing 32MB flash memory(winbond 25032fvsig) on the board with this module. Initially, I created a custom partition for 4MB for ota. However, the size of the firmware to upload is 3MB, so the ota0 and ota1 are 2MB each, so I can't upload them. In this case, can I use the 32MB flash memory mounted on the board to implement a ota function that can raise 3MB of firmware?
platformio.ini
custom_4MB_ota.csv
Thank you for your attention to my pain.
I'm using esp32-wroom-32e. The internal flash is 4MB, and I'm also installing 32MB flash memory(winbond 25032fvsig) on the board with this module. Initially, I created a custom partition for 4MB for ota. However, the size of the firmware to upload is 3MB, so the ota0 and ota1 are 2MB each, so I can't upload them. In this case, can I use the 32MB flash memory mounted on the board to implement a ota function that can raise 3MB of firmware?
platformio.ini
Code: Select all
[env:ESP32-2432S028R]
platform = espressif32
board = esp32dev
# board = esp32dev
framework = arduino
monitor_speed = 115200
monitor_filters =
esp32_exception_decoder
time
colorize
upload_speed = 115200
board_build.partitions = custom_4MB_ota.csv
board_upload.flash_size = 4MB
board_upload.maximum_size = 4194304Code: Select all
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, , 0x4000,
otadata, data, ota, , 0x2000,
phy_init, data, phy, , 0x1000,
app0, app, ota_0, 0x10000, 0x1f0000,
app1, app, ota_1, , 0x1f0000, Thank you for your attention to my pain.