2025-08-11 2:05 AM
Hello,
I am using a custom bootloader for firmware updates on an STM32F7 series MCU.
For my process, I need to check the maximum possible application size.
Could you please guide me on how I can calculate the application size from the generated .bin, .hex, or .elf files?
Also, how can I choose the slots to store the firmware.
Thanks in advance!
2025-08-12 8:22 AM - edited 2025-08-12 8:23 AM
It's just not that complex as object files go, and the headers are relatively simple from a loader's perspective, you don't have to pull and process the symbols, unless you want too, and no fixup/relocation are involved in these static ARM variants.
Sometimes it helps to have a basic understanding of data representations and objects, but then I grew up with a better foundation in micro-controllers, because that's what the micro-processors of the day were.
FROMELF (KEIL / MDK / REALVIEW) can decompose multiple .BIN into a directory, so you don't need to get 2-4GB binaries..