How to create custom memory sections

nRF Connect for VS Code

tags
nRF Connect for VS Code

You can add a custom memory section to nRF Debug's Memory Explorer to display and keep track of the defined device's memory address within its own dedicated tab. This is useful if you want to check a specific memory address on your device, rather than displaying all memory addresses within the flash and RAM.

You have two options for creating custom memory sections:

  • ELF symbol - This action creates a dynamic memory section by the name of a memory symbol.
  • Memory region from ELF file - This action creates a memory section based on the ELF file structure: rom, text, rodata, or data.
  • Custom address - This action creates a memory section fixed to a given address range.

If your debug session was defined in a launch configuration, new sections will be saved to the launch.json file. Otherwise, the extension stores the new sections in a local storage for each build configuration, so that the same sections are available in your next debug session.