hi
To perform OTA updates on an ESP32 master and slave system using PHY RT8201 and the ESP-IDF, the following steps can be taken:
Set up the ESP32 master device as a web server that hosts the firmware binary.
On the slave device, implement a function that retrieves the firmware binary from the master device's server using the HTTP client library.
Use the esp_ota_set_boot_partition function to set the active partition on the slave device where the new firmware will be written.
Write the firmware binary to the active partition using the esp_ota_write function.
Use the esp_ota_end function to finalize the OTA update process.
Reboot the slave device to boot into the new firmware.
On the master device, you can use the esp_ota_get_status function to check the status of the OTA update on the slave device.
It is important to note that for the OTA update process to work correctly, the slave device must be connected to the master device and have the correct settings configured. Also, the slave device should have enough free space in its flash memory to store the new firmware binary.
Also, make sure to have the correct settings configured like the baud rate and the spi frequency in the esp-idf to be able to communicate with the PHY RT8201.
please knock me for more queries