Question
Can't jump to STM bootloader on STM32L051
Posted on March 20, 2015 at 08:45
I have tried to jump to STM bootloader, but unfortunately STM reset after that. Where can be error?
SysMemBootJump = (
void
(*)(
void
)) (*((
unsigned
int
*) 0x1FF00000 + 4));
__disable_irq(); HAL_RCC_DeInit(); SysTick->CTRL
= 0; SysTick->LOAD
= 0; SysTick->VAL
= 0;__set_MSP
(*(__IO
uint32_t
*) 0x1FF00000);SysMemBootJump
();This code works fine on STM32L151 and STM32F401(with appropriate addresses).