Flashing firmware using System Bootloader and STM32CubeProgrammer on Nucleo-G491RE
Hi, I am working on making firmware write work using System Bootloader and USART1 interface on NUCLEO-G491RE. I have a code snippet taken from the internet which jumps to the System Bootloader section of the code once the User Button is pressed. I have interfaced a USB to UART converter at PA9, PA10, and GND as suggested in the AN2606.
void BootloaderInit() {
void (*SysMemBootJump)(void);
volatile uint32_t addr = 0x1FFF0000;
HAL_RCC_DeInit();
SysTick->CTRL = 0;
SysTick->LOAD = 0;
SysTick->VAL = 0;
__HAL_SYSCFG_REMAPMEMORY_SYSTEMFLASH();
__disable_irq();
SysMemBootJump = (void (*)(void)) (*((uint32_t*) (addr + 4)));
__set_MSP(*(uint32_t*) addr);
SysMemBootJump();
}But once the User Button is pressed and tried to connect to the UART interface using STM32CubeProgrammer it shows
Why is the firmware upgrade not working?
