cancel
Showing results for 
Search instead for 
Did you mean: 

Build a .hex file which including the Bootloader

Jayce Cao
Associate II

I am working on an application based on STM32F103 chips.

After build the application, I do full chip erase using ST-LINK Utility and then flash the chip using new .hex file.

I know that STM32 starts executing the code at the address of 0x8000000. However, my main program starts from address of 0x8003000. I thought the stm32 used a space of 0x8000000 ~ 0x8002FFF for Bootloader. Therefore, my application cannot work.

I cannot find any solutions to build a .hex file which including the Bootloader for my application.

Do you guys know any way to build that one?

Thanks and BRs,

10 REPLIES 10

> Creating a C App to merge a .HEX file is a relatively low complexity task.

Python is even better. It comes with all sorts of batteries included, all younger folks these days know it better than C.

Some Eclipse IDEs on Windows include python (or jython) and even bash-like shell (msys) for easy scripting.

(CubeIDE... hint hint!)

-- pa