How to generate a memory report

nRF Connect for VS Code

tags
nRF Connect for VS Code

To generate a memory report for your application, use one of the following methods:

  • Click Generate memory report in the Details View.

    Generate memory report action

    This generates a basic memory report in the Details View that only includes information about the memory usage of each symbol.

  • Click Memory report in the Actions View.

    Memory report action

    In addition to the basic memory report in the Details View, this action also generates an interactive memory report in the editor area that includes a sunburst diagram to show the size and percentage of memory that each symbol uses on your device for RAM and ROM (and partitions, if available).

A progress notification bar appears in the bottom right corner of the screen while the report is being generated.

The following exceptions can apply to the report generation:

  • If you have several build configurations, the extension generates a memory report only for the currently-selected build configuration.
  • If you have a build configuration with several contexts, the extension asks you to select the image for which you want to create the report.
  • If you have an invalid build configuration, a failure warning appears when you try to generate the report.
  • If any changes have been made to your device or its application, you must rebuild the application and regenerate the memory report for it to display the updated information.
  • If your project uses Trusted Firmware-M, the memory report includes additional tabs for the TF-M ROM and RAM only from the nRF Connect SDK v3.0.0 and later.