Skip to main content
PGior.2
Associate
September 17, 2023
Question

[Debug] Software reset with bootloader

  • September 17, 2023
  • 2 replies
  • 1704 views

Hello everyone,

on my MCU i've loaded a bootloader at address 0x0800000 and a dummy application at 0x0810000, but i'm experiencing some issues on chip reset button on the IDE. At first, when i debug the application no errors are encountered and the application starts on main(). When i press on reset button (software reset), i'm facing address errors since the debuggers takes me on wrong addresses and does not restart on main().

How can i fix this? Are there some commands i can apply on IDE's reset interface?

    This topic has been closed for replies.

    2 replies

    AScha.3
    Super User
    September 17, 2023

    you need to restart , menu: run -> restart

    or symbol

    AScha3_0-1694950424281.png

     

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    PGior.2
    PGior.2Author
    Associate
    September 17, 2023

    This will restart debug session from main()?

    AScha.3
    Super User
    September 17, 2023

    yes.

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    Rim LANDOLSI
    ST Employee
    September 19, 2023

    Hello @PGior.2 ,

    As your issue is related to Bootloader topic , I invite you to have a look at this post. This could help you to locate your issue.

    Also, Make sure the setting of SCB->VTOR(VTOR to point to system flash) in SystemInit() points at the address of your vector table.

    To further investigate your issue, could you provide the used MCU and the steps to create your bootloader application.

    Regards,

    Rim