Hi
I am working on nRF54L15-DK (PCA10156 0.9.2 2024.49) with chip N54L15 QFAAB0 2444AA
I am using Nordic SDK 3.0.2 and Zephyr 4.0.99
My task is to have the top 2K of the RAM as retained and survive during OFF (battery still connecrted :-) )
In device tree:
In linker.cmd for both mcuboot and application contains; "Retained ( rw ) : ORIGIN = (537131008), LENGTH = (2048)"
I access the area like this:
I experience that a magic value 0xBEEF0AA0 placed in that area is set correctly just before sys_poweroff() but in pre_kernel_init() value is what seems to be a random value - not 0x00000000.
The system wakes up from off by GPIO sense.
... which works fine.
From the nRF54L15 datasheet I see that this area should be retained by default. and I have confirmed that by stopping at a breakpoint at sys_poweroff().
POWER[0].CONTROL = 0x000000FF
POWER[0].RET = 0xFFFFFFFF
POWER[0].RET2 = 0xFFFFFF80
What am I missing ?
Best regards
GoodOld