cancel
Showing results for 
Search instead for 
Did you mean: 

Is a bootloader necessary?

poonamlakhara
Associate

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 ?

5 REPLIES 5
Andrew Neil
Super User

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.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
poonamlakhara
Associate

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 .

urbito
Senior II

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.

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.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

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.