How to create a memory section for a memory region from ELF file

nRF Connect for VS Code

tags
nRF Connect for VS Code

Complete the following steps to add a memory region memory section tab:

  1. In the Memory Explorer tab bar, click the + button.
    A quick pick menu appears.
  2. Select Memory region from ELF file.
    The list of available regions appears, based on the ELF file structure. Each region shows its address range and size in bytes.
  3. Select the memory region from the list.
    For example, rom.

The memory region tab is added to the Memory Explorer.

rom memory section tab in the Memory Explorer

The location and size of the memory region is determined at the start of each debug session based on the standard region symbols (_region_start and _region_end) in the ELF file, so if the region boundaries change during compilation, the Memory Explorer shows the updated values.