How to debug application in OTA1 partition
Posted: Mon Oct 02, 2023 4:36 pm
I am using an ESP32C3 processor. IDE is Visual Studio 2022 with VisualGDB. I'm making an application that has a bootloader and a webserver application - These are my partitions:
# Name, Type, SubType, Offset, Size, Flags
# Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap
nvs, data, nvs, , 0x6000,
phy_init, data, phy, , 0x1000,
factory, app, factory, , 1M,
webserver, app, ota_1, , 0x100000,
The bootloader should be in the "factory" partition and the webserver in the "webserver" ota_1 partition. How do I compile a webserver application to be downloaded and executed from the ota_1 partition. I tried various combinations, but it always downloads to the "factory" partition.
# Name, Type, SubType, Offset, Size, Flags
# Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap
nvs, data, nvs, , 0x6000,
phy_init, data, phy, , 0x1000,
factory, app, factory, , 1M,
webserver, app, ota_1, , 0x100000,
The bootloader should be in the "factory" partition and the webserver in the "webserver" ota_1 partition. How do I compile a webserver application to be downloaded and executed from the ota_1 partition. I tried various combinations, but it always downloads to the "factory" partition.