Open juanmartin84 opened 3 weeks ago
@juanmartin84 You are using "Huge App" partition table, it doesn't contain any partition for OTA updates.
board_build.partitions = partition_table_HUGE_APP.csv ;https://github.com/espressif/arduino-esp32/tree/master/tools/partitions
@juanmartin84 : for big firmwares (more than 2Mb) you can use MycilaSafeBoot which allows to have a smaller recovery partition used for OTA flash and a bigger app partition, more than 3Mb / 7Mb depending on the flash size (4Mb or 8Mb). MycilaSafeBoot includes ElegantOTA.
Hello @ayushsharma82 @mathieucarbou , thanks for recommendations. I used this in the .ini file and since I have16mb flash available and seems to be working.
board_upload.flash_size = 16MB
board_build.partitions = app3M_spiffs9M_fact512k_16MB.csv
board_build.filesystem = littlefs
Best regards
Hi! @ayushsharma82 @mathieucarbou I have the same issue with an ESP32 S3. INI:
[env:HCP_Giffordv2a]
board = adafruit_feather_esp32s3 # https://docs.platformio.org/en/latest/frameworks/espidf.html#boards
build_flags = ${env:esp32.build_flags} -D SENSORS -D USE_HCSR501 -D USE_BME
I also get "status code 0". which partition type have i to use?
Example of one I like to use:
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xE000, 0x2000,
app0, app, ota_0, 0x10000, 0x1F0000,
app1, app, ota_1, 0x200000, 0x1F0000,
spiffs, data, spiffs, 0x3F0000, 0x10000,
which can also be written as:
# Name ,Type ,SubType ,Offset ,Size ,Flags
nvs ,data ,nvs ,36K ,20K ,
otadata ,data ,ota ,56K ,8K ,
app0 ,app ,ota_0 ,64K ,1984K ,
app1 ,app ,ota_1 ,2048K ,1984K ,
spiffs ,data ,spiffs ,4032K ,64K ,
But you can decide to reduce the ota size, add a coredump, etc.
But in my bigger apps, I use MycilaSafeboot and I have then a huge app partition of 3.2Mb for a 4Mb flash
# Name ,Type ,SubType ,Offset ,Size ,Flags
nvs ,data ,nvs ,36K ,20K ,
otadata ,data ,ota ,56K ,8K ,
safeboot ,app ,factory ,64K ,640K ,
app ,app ,ota_0 ,704K ,3264K ,
spiffs ,data ,spiffs ,3968K ,64K ,
coredump ,data ,coredump ,4032K ,64K ,
And 7.3Mb for a 8Mb flash
# Name ,Type ,SubType ,Offset ,Size ,Flags
nvs ,data ,nvs ,36K ,20K ,
otadata ,data ,ota ,56K ,8K ,
safeboot ,app ,factory ,64K ,640K ,
app ,app ,ota_0 ,704K ,7312K ,
spiffs ,data ,spiffs ,8128K ,64K ,
coredump ,data ,coredump ,8192K ,64K ,
thx, now it works!
Hello, i'm using ElegantOTA.h version 3.0.0 with AsyncDemo code in platformio. After select the file.bin to apload nothing is shown in serial monitor.
At the end in the browser appears "Upload failed Server returned status code 0"
Below the .ini file
Below the code:
What can be happening? Thanks