Showing results for 
Search instead for 
Did you mean: 

I facing issue using stmcube ide, I'm using custom linker script for stm32f103, the ide generate large binary over 50 MBytes. My problem is that I need the binary file to send it over usb to the microcontroller in bootloader. #STMCUBEIDE #LINKER_SCRIPT

Associate III
Bob S
Lead III

Can't help you much without seeing the linker script and perhaps the resulting map file. Or look at the map file yourself and see where all that data comes from.

So your linker describes sparse memory regions, and your BIN tool doesn't split non-contiguous memory spaces.

Use different tools to split the .ELF, or make a determination about why you're exporting to multiple sections.

Things that need to be initialized in RAM need to be parked in FLASH, and copied by your startup.s code.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..