2023-12-27 02:22 AM
Hi,
I am working on OTA update over serial port communication(UART) How can I achieve this? How can I trigger the bootloader and download, install the firmware update. As I am using stm32H563zi. Can I get any reference for the above scenario.
Thanks in advance.
2023-12-27 05:51 AM
You can jump to the bootloader and use the UART bootloader, if you are connected to pins supported by that function. See AN2606 for pins. STM32CubeProgrammer can connect to a chip in such a state using the commands seen in AN3155, or you can implement your own solution.
2023-12-27 06:51 AM
For most OTA you need to manage the AIR and the PROCESS, the System Loader in ROM permits ISP (In-System Programming) where as IAP (In-Application Programming) is probably what you need to manage the interaction in a more controlled, and user-specific/centric manner.
Various IAP examples exist across the STM32 Universe, see various CubeF4/ F7 / etc repositories. IAP on Serial often using Y-MODEM