cancel
Showing results for 
Search instead for 
Did you mean: 

Jump to bootloader from application on STM32U5

STayl.7
Associate II

In AN2606 it says:

"For STM32 devices having the Dual Bank Boot feature, to jump to system memory from user code the user has first to remap the System Memory bootloader at address 0x00000000 using SYSCFG register (except for STM32F7 Series), then jump to bootloader. For STM32F7 Series, the user has to disable nDBOOT and/or nDBANK features (in option bytes), then jump to bootloader"

On our current CPU, the STM32L4 there is is a macro to do this:

```

#define __HAL_SYSCFG_REMAPMEMORY_SYSTEMFLASH() MODIFY_REG(SYSCFG->MEMRMP, SYSCFG_MEMRMP_MEM_MODE, SYSCFG_MEMRMP_MEM_MODE_0)

```

The STM32U5 does not have a SYSCFG MEMRMP register and I'm not clear how I might perform the equivalent operation.

2 REPLIES 2
SMill.8
Associate II

I have the same problem... How could we migrate this operation from L4 to U5?

Thanks in advance.

STayl.7
Associate II

Sorry about the slow reply - I've been working on other things and just come back to this.

In the end I just ifdef'd out the call to   __HAL_SYSCFG_REMAPMEMORY_SYSTEMFLASH();

for the STM32U5 port and the jump to the bootloader seems to work just fine.

I followed this example:

https://community.st.com/s/article/STM32H7-bootloader-jump-from-application