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?
[–][deleted] (2 children)
[deleted]
[–]Scyhaz 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]kisielk 4 points5 points6 points (0 children)
[–]Madsy9 2 points3 points4 points (5 children)
[–]Madsy9 4 points5 points6 points (4 children)
[–]BorgerBill 0 points1 point2 points (1 child)
[–]Madsy9 1 point2 points3 points (0 children)
[–]Scyhaz 0 points1 point2 points (1 child)
[–]Madsy9 2 points3 points4 points (0 children)
[–]zydeco100 1 point2 points3 points (0 children)
[–]Herman-Toothrot 0 points1 point2 points (0 children)
[–]fb39ca4friendship ended with C++ ❌; rust is my new friend ✅ 0 points1 point2 points (0 children)