cancel
Showing results for 
Search instead for 
Did you mean: 

How to calculate maximum application size from .bin/.hex/.elf?

Harsh_Shakya
Associate

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!

10 REPLIES 10

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..

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