Define a section to consistently place rtt

NCS 2.7 with sysbuild + mcuboot

NRF52840 (custom boards)

In my previous projects with NRF5 SDK I found it was very helpful to define a section in the linker so the rtt control block is always placed in the same place.  This way when updating between different versions of the application or when running through the bootloader (if rtt output is enabled) the debugger always find the rtt control block.

How would I define this in zephyr?  It seems like I need to add a linker ld script.

I tried adding it to my pm_static.yml but it doesn't appear to interface all the way to the linker.

rtt:
  address: 0x2003F800
  end_address: 0x2003FC00
  region: sram_primary
  size: 0x400

Related