Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By dkinzer
#37014
esp03madness wrote:Friends, I was wondering if anyone could give me a hint on how to look at what is inside the [...] eagle.flash.bin and eagle.irom0text.bin.
The file sometimes named eagle.flash.bin (the name is unimportant, of course) is the one that is loaded into the Flash chip at address 0x000000. The content of that file is a composite image with code destined for the Instruction RAM (0x40100000) and initialization data destined for User Data RAM (0x3ffe8000). You can find a description of the format of that image in various places including at the page below - scroll down the page until you find "Firmware image format".

https://github.com/themadinventor/esptool

The content of the file sometimes named eagle.irom0text.bin (again, the name is unimportant) is just a raw binary image of all of the functions (and read-only data) that reside in the irom0 section. The Flash address of this image depends on how the linker script is written but it is often loaded at 0x40000 of the Flash chip for a non-OTA configuration. As the functions are needed, they are copied to the Instruction RAM Cache.

In both cases, you should be able to examine the file content using the Linux command od or a hexadecimal file editor/viewer.