Skip to main content
Associate II
December 27, 2023
Question

OTA Update over serial communication

  • December 27, 2023
  • 2 replies
  • 2377 views

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.

    This topic has been closed for replies.

    2 replies

    TDK
    December 27, 2023

    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.

    https://community.st.com/t5/stm32-mcus/how-to-jump-to-system-bootloader-from-application-code-on-stm32/ta-p/49424

    https://www.st.com/resource/en/application_note/an2606-stm32-microcontroller-system-memory-boot-mode-stmicroelectronics.pdf

    https://www.st.com/resource/en/application_note/an3155-usart-protocol-used-in-the-stm32-bootloader-stmicroelectronics.pdf

     

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    Tesla DeLorean
    Guru
    December 27, 2023

    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

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..