Hi!
We are building an application for Thingy91X and noticed that there is an overlap between the shared memory between the app and net mcus, sram0_shared, and RetainedMem. Snippet from our build/nrf53/zephyr/zephyr.dts:
/* node '/reserved-memory' defined in zephyr/dts/vendor/nordic/nrf5340_cpuapp_partition.dtsi:106 */
reserved-memory {
#address-cells = < 0x1 >; /* in zephyr/dts/vendor/nordic/nrf5340_shared_sram_partition.dtsi:26 */
#size-cells = < 0x1 >; /* in zephyr/dts/vendor/nordic/nrf5340_shared_sram_partition.dtsi:27 */
ranges; /* in zephyr/dts/vendor/nordic/nrf5340_shared_sram_partition.dtsi:28 */
/* node '/reserved-memory/image@20000000' defined in zephyr/dts/vendor/nordic/nrf5340_cpuapp_partition.dtsi:111 */
sram0_image: image@20000000 {
reg = < 0x20000000 0x6e000 >; /* in pps_firmware/nrf53/boards/thingy91x_nrf5340_cpuapp.overlay:77 */
};
/* node '/reserved-memory/image_s@20000000' defined in zephyr/dts/vendor/nordic/nrf5340_cpuapp_partition.dtsi:116 */
sram0_s: image_s@20000000 {
reg = < 0x20000000 0x40000 >; /* in zephyr/dts/vendor/nordic/nrf5340_cpuapp_partition.dtsi:118 */
};
/* node '/reserved-memory/image_ns@20040000' defined in zephyr/dts/vendor/nordic/nrf5340_cpuapp_partition.dtsi:121 */
sram0_ns: image_ns@20040000 {
reg = < 0x20040000 0x40000 >; /* in zephyr/dts/vendor/nordic/nrf5340_cpuapp_partition.dtsi:123 */
};
/* node '/reserved-memory/image_ns_app@20040000' defined in zephyr/dts/vendor/nordic/nrf5340_cpuapp_partition.dtsi:126 */
sram0_ns_app: image_ns_app@20040000 {
reg = < 0x20040000 0x30000 >; /* in zephyr/dts/vendor/nordic/nrf5340_cpuapp_partition.dtsi:128 */
};
/* node '/reserved-memory/memory@20070000' defined in zephyr/dts/vendor/nordic/nrf5340_shared_sram_partition.dtsi:30 */
sram0_shared: memory@20070000 {
reg = < 0x20070000 0x10000 >; /* in zephyr/dts/vendor/nordic/nrf5340_shared_sram_partition.dtsi:32 */
phandle = < 0xe >; /* in zephyr/dts/arm/nordic/nrf5340_cpuapp_ipc.dtsi:9 */
};
};
/* node '/sram0_ns@2007fc00' defined in nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_common.dtsi:150 */
sram0_ns@2007fc00 {
compatible = "zephyr,memory-region",
"mmio-sram"; /* in nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_common.dtsi:151 */
reg = < 0x2007fc00 0x400 >; /* in nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_common.dtsi:152 */
zephyr,memory-region = "RetainedMem"; /* in nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_common.dtsi:153 */
status = "okay"; /* in nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_common.dtsi:154 */
/* node '/sram0_ns@2007fc00/retainedmem' defined in nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_common.dtsi:156 */
retainedmem {
compatible = "zephyr,retained-ram"; /* in nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_common.dtsi:157 */
status = "okay"; /* in nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_common.dtsi:158 */
#address-cells = < 0x1 >; /* in nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_common.dtsi:159 */
#size-cells = < 0x1 >; /* in nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_common.dtsi:160 */
/* node '/sram0_ns@2007fc00/retainedmem/boot_mode@0' defined in nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_common.dtsi:162 */
boot_mode0: boot_mode@0 {
compatible = "zephyr,retention"; /* in nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_common.dtsi:163 */
status = "disabled"; /* in pps_firmware/nrf53/boards/thingy91x_nrf5340_cpuapp.overlay:72 */
reg = < 0x0 0x100 >; /* in nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_common.dtsi:165 */
prefix = [ 08 04 ]; /* in nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_common.dtsi:166 */
checksum = < 0x1 >; /* in nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_common.dtsi:167 */
};
};
};
Is this a known bug in the SDK or am I missing some config?
We are using NCS 3.1.1.
BR Henrik