cancel
Showing results for 
Search instead for 
Did you mean: 

How to jump to system bootloader from application code on STM32H573 microcontrollers

pavelkotel
Associate

I need to use embedded STM32H573 bootloader to update customer application using UART1 or uart3.

I try to use AN2606, but no success. May you provide correct code to jump from application to the embedded bootloader for specific processor model: STM32H573, please?

1 REPLY 1
gbm
Principal
#include "stm32h5xx.h"
#define BOOT_ADDR 0x0BF97000
#include "cm_boot.h" // https://github.com/gbm-ii/STM32_Inc/blob/main/cm_boot.h

int main(void)
{
		
    app_start(BOOT_ADDR);	// start ST built-in bootloader
}

The code must be compiled with -O1 or above - see the comments in cm_boot.h

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice