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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-12 5:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-12 10:51 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-12 12:49 PM - edited ‎2023-06-19 11:26 AM
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.
Up vote any posts that you find helpful, it shows what's working..
