r/embedded•
casuallywill

Loading of Binary Files

Tech question

I'm currently trying to learn about how different file types are loaded onto microcontrollers.

From what I understand, binary files do not contain address data and therefore cannot contain holes unlike hex files.

Therefore I would expect any binary file produced that places .text in Flash and .data in RAM to cover each memory address with filler data, resulting in huge file sizes.

However, when I use Keil's fromelf program which converts .axf into .bin the .bin file size is in kB. If flash address is 0x0800_0000 and RAM is 0x2000_0000, shouldn't this value be much larger to fill in the space?

Posted Apr 30, 2019, 10:03 PM UTC

1213
Loading comments…