yahyatawil / map_file_analyzer

A python script searches in .map file, generated from GCC-Tool chain, for information related to memory usage

Home Page:https://atadiat.com/en/e-getting-information-mcu-memory-usage-map-file/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use

This script searches in .map file, generated from GCC-Tool chain, for information related to memory usage

User has to change settings in the associated file "map_settings.txt" to set:

  • Directory to .map file
  • Sections defined in linker script that has unique start and end address keywords (.i.e __bss_start__)
  • Sections defined in linker script with no unique start and end address keywords. User must specify start keyword and next section keyword ... look bellow:
....
*(.dtors)
*(.rodata*)

KEEP(*(.eh_frame*))
....

that was part from linker script. (.eh_frame) is the unique keyword that make the map_file_analyzer.py knows where (.rodata) ends.

Script in action

Tested Using ...

  • Python 2.7 (64 bit) and Python 3.7.2 (32 bit) on Winodws 10 and using linker script of NRF52 SDK (nrf5x_common.ld)

About

A python script searches in .map file, generated from GCC-Tool chain, for information related to memory usage

https://atadiat.com/en/e-getting-information-mcu-memory-usage-map-file/

License:MIT License


Languages

Language:Python 100.0%