ESP32 bin tool dump util ...
Posted: Sat Feb 24, 2018 3:12 pm
I'm studying the file structure that is generated by esptool when it converts a compile ELF formatted executable into the format required for flashing to the ESP32. To that end, I needed a simple program to "examine" what was there.
Here is a link to my effort. https://github.com/nkolban/esp32-snippe ... derExamine
It is a Linux C source file that can be compiled with
gcc main.cpp
When run and supplied the name of an ESP32 bin file, it dumps the content ... here is an example:
Sharing in case it might be useful to others.
Here is a link to my effort. https://github.com/nkolban/esp32-snippe ... derExamine
It is a Linux C source file that can be compiled with
gcc main.cpp
When run and supplied the name of an ESP32 bin file, it dumps the content ... here is an example:
Code: Select all
Dump of ESP32 binary file: app-template.bin
magic: 0xe9, segment_count: 7, entry_addr: 0x40080cc4 - Internal SRAM 0 (128K)
Seg | Start | End | Length | Area
----+------------+------------+-------------------+-------------------------------
0 | 0x3f400020 | 0x3f403c14 | 15348 (0x003bf4) | External Memory (Data)
1 | 0x3ffb0000 | 0x3ffb1714 | 5908 (0x001714) | Internal SRAM 2 (200K)
2 | 0x40080000 | 0x40080400 | 1024 (0x000400) | Internal SRAM 0 (128K)
3 | 0x40080400 | 0x40087dec | 31212 (0x0079ec) | Internal SRAM 0 (128K)
4 | 0x400c0000 | 0x400c0000 | 0 (0x000000) | RTC FAST Memory (8K)
5 | 0x00000000 | 0x00002ed4 | 11988 (0x002ed4) | Un-described
6 | 0x400d0018 | 0x400e1128 | 69904 (0x011110) | External Memory (Instruction)