I would like to better understand how OTA works on ESP32. I have read the datasheet but I still have some questions about the OTA data partition: it has a size of 0x2000 bytes being 2 sectors of 4K, my question is how are these bytes filled? The bootloader will see such OTA data partition to chose a firmware partition to boot. I can write code to update the firmware in the respective partitions but I don't know how to updatw the bytes in OTA data partition.
I thank you in advance for your help.
Obs: I dont wish to use the OTA functions, for such reason I want to understand it to develop my own routine.