2025-05-29 2:42 AM - last edited on 2025-05-29 3:31 AM by mƎALLEm
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 ?
2025-05-29 2:47 AM - edited 2025-05-29 2:49 AM
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.
2025-05-29 4:53 AM - edited 2025-05-29 4:57 AM
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 .
2025-05-29 5:03 AM
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.
2025-05-29 5:18 AM
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.
2025-05-29 5:40 AM
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.