2025-08-28 1:23 AM - edited 2025-08-28 3:08 AM
Hi all,
I'm working with an rak3171 build with an STM32WLE5CC, I've write a python script for flashing my firmware over uart using usart ST bootloder, everything works well, but when flash is done, I'd like to reset my bord for running the new firmware.
I've use this ST AN NOTE and if you look at page 18, ST explain GO command, I'm trying to use but without success, my board never reset, so my question is, am I understand well, if I use GO command should I'm able to reset my board? Is there a ST example somewhere any helps will be good :)
EDIT: I'ma able to send GO command and FW addr, bootloader ACK me (gor 0x21 and addr, but after that nothing happen, my firmware doesn't run..
thanks
2025-08-28 5:14 AM
Hello @SBaro.11
Ensure that the VTOR is correctly configured to the user application start address and the address you are sending is the correct starting address. Also, a HW reset may be needed since the Go Command is designed to jump to the user application and execute it without performing such a reset.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-08-28 5:21 AM - edited 2025-08-28 5:23 AM
Hi @STTwo-32
Thanks for your answer, I've set VTOR,
int main(void)
{
/* USER CODE BEGIN 1 */
__disable_irq();
SCB->VTOR = ((uint32_t)0x08000000);
__enable_irq();
/* USER CODE END 1 */
....
}
Should I do something else, or should I add VTOR in SystemInit()? If I understand well, GO command doesn't jump to reset_handler ?