Actually this happens only on my custom board. On my evk it works fine. Both boards uses ESP32_WROVERB. My evk is Esp32_DevKitC_v4;
I'm using ESP-IDF version 3.3 commit: 722043f73
I'm using the code from advanced_https_ota example.
What happens is that the OTA procedure finishes successfully (all procedures seems to be done Ok) and after reboot (esp_restart()) the bootloader fails to read ota data sequence on my custom board, i get this message:
"OTA sequence numbers both empty (all-0xFF) or partition table does not have bootable ota_apps (app_count=2)" and it boots to the first ota partition when it should boot the second one.
My partition table is structured this way:
nvs, data, nvs, , 0x23000
otadata, data, ota, , 0x2000
phy_init, data, phy, , 0x1000
ota_0, app, ota_0, , 0x1e0000
ota_1, app, ota_1, , 0x1e0000
nvs_key, data, nvs_keys, , 0x1000
For flashing my application in my custom board i'm using Esp-prog board and i created a .bat script using openocd, i'm calling
Code: Select all
openocd.exe -f esp32_devkitj_v1.cfg -f esp32-wrover.cfg -c "program_esp32 [BIN] [ADDRESS] verify exit"
- bootloader.bin @0x1000
- partitions_custom.bin @0x8000
- ota_data_initial.bin @0x2c000
- app.bin @0x30000
The application is working fine on my custom board, the only problem is in booting the correct OTA app partition. On the evk everything goes ok.
Could someone please help me?