Question
STM32l072 is not going to bootloader mode.
void JumpToBootloader(void) {
void (*SysMemBootJump)(void);
volatile uint32_t addr = 0x1FFF0000;
HAL_RCC_DeInit();
HAL_DeInit();
SysTick->CTRL = 0;
SysTick->LOAD = 0;
SysTick->VAL = 0;
__disable_irq();
__HAL_SYSCFG_REMAPMEMORY_SYSTEMFLASH();
SysMemBootJump = (void (*)(void)) (*((uint32_t *)(addr + 4)));
__set_MSP(*(uint32_t *)addr);
SysMemBootJump();
}I am using STM32l072( B-L072Z-LRWAN1 Discovery kit).Trying to jump to Bootloader using above code .I am trying to flash code using usb to ttl board to port UART2(LPUART1) with Demonstrator GUI tool. After calling above function ,Demonstrator GUI tools is not able to connect to board.
