Skip to content

[HOW TO] Generate a binary footprint for a basic Zephyr application

Maciej Perkowski edited this page Nov 16, 2020 · 1 revision

To generate a binary footprint for your board use that sequence of actions:

  1. Verify that you are using Zephyr RTOS Release v2.4.0.

    $ git checkout 7a3b253

  2. Verify that your version of west is v0.7.3 or higher

    $ west --version

  3. Build an application using the command:

    $ west build -b <your_board_name> tests/benchmarks/footprints/

  4. To view the ROM results output run.

    $ west build -t rom_report

    The result will be a list of all compiled objects and their ROM usage in a tabular form with bytes per symbol and the percentage it uses.

  5. To view the RAM results output run.

    $ west build -t ram_report

    The result will be a list of all compiled objects and their RAM usage in a tabular form with bytes per symbol and the percentage it uses.