Skip to main content
Visitor II
May 29, 2025
Solved

Is a bootloader necessary?

  • May 29, 2025
  • 3 replies
  • 589 views

can anybody answer please, if i costmised board based on  bg431besc1 board  it needed to upload boot loader file in stm32g431 controller to run in stm32ide code ?

    This topic has been closed for replies.
    Best answer by Andrew Neil

    You only asked if a bootloader was needed to run code - you didn't say anything about ST [Motor] Pilot.

    But, anyhow, a bootloader (as the name suggests) is just about loading code - once that code has been loaded, it shouldn't matter how it got there.

    3 replies

    Super User
    May 29, 2025

    STM32CubeIDE can download code via SWD - eg, using an ST-Link - so you don't need a bootloader 

     


    @poonamlakhara wrote:

     run in stm32ide code ?


    Note that code does not run in the IDE - the IDE builds & downloads the code to the target, and it runs in the target.

    Visitor II
    May 29, 2025

    I knew st link don't need bootloader but to run st pilot there is is necessary u have both uart as well as st link and if uart not working than pilot also not work stm32ide code. so tell me bootloader is needed or not ? cuz  i  hear that stm32g series have inbuild bootloader so just want clarify that custom  board need to load bootloader or not ? and also in stm32ide i upload code from st link but suddenly exit from while after run command that's why i asking for bootloader verification cuz same code code running in original code .

    Super User
    May 29, 2025

    You only asked if a bootloader was needed to run code - you didn't say anything about ST [Motor] Pilot.

    But, anyhow, a bootloader (as the name suggests) is just about loading code - once that code has been loaded, it shouldn't matter how it got there.

    Visitor II
    May 29, 2025

    ohk thank u , i asked wrongly cuz i already upload and debug code with st link problem is it exit from target as long as i give run command and as i said i m using customized board so want to clarify  it bootloader or something else.

    Graduate II
    May 29, 2025

    As andrew neil, you do not need a bootloader if you use an STLink through SWD pins. You can directly load and debug code to your mcu without bootloader but through STLink on SWD pins.

    Bootloader is needed if you want to load a program through USB, like using the Arduino IDE, for example.