Skip to content

Commit 433b850

Browse files
nika-nordiccarlescufi
authored andcommitted
samples: nrf54l: remove direct RAM retention management
RAM retention is now managed within sys_poweroff() call. Signed-off-by: Nikodem Kastelik <[email protected]>
1 parent 83cec80 commit 433b850

File tree

2 files changed

+0
-22
lines changed
  • samples
    • bluetooth/peripheral_power_profiling/src
    • nfc/system_off/src

2 files changed

+0
-22
lines changed

samples/bluetooth/peripheral_power_profiling/src/main.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
#include <nfc/ndef/le_oob_rec.h>
2828

2929
#include <helpers/nrfx_reset_reason.h>
30-
#ifdef CONFIG_SOC_NRF54L15_CPUAPP
31-
#include <hal/nrf_memconf.h>
32-
#endif
3330

3431
#include "pwr_service.h"
3532

@@ -682,14 +679,6 @@ static void system_off(void)
682679
}
683680
}
684681

685-
#ifdef CONFIG_SOC_NRF54L15_CPUAPP
686-
/* Disable RAM retention in System OFF as it is not utilized by this sample. */
687-
uint32_t ram_sections = 8;
688-
689-
nrf_memconf_ramblock_ret_mask_enable_set(NRF_MEMCONF, 0, BIT_MASK(ram_sections), false);
690-
nrf_memconf_ramblock_ret2_mask_enable_set(NRF_MEMCONF, 0, BIT_MASK(ram_sections), false);
691-
#endif
692-
693682
sys_poweroff();
694683
#endif /* !IS_ENABLED(CONFIG_SOC_SERIES_NRF54HX) */
695684
}

samples/nfc/system_off/src/main.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
#include <nfc/ndef/text_rec.h>
2121

2222
#include <dk_buttons_and_leds.h>
23-
#ifdef CONFIG_SOC_NRF54L15_CPUAPP
24-
#include <hal/nrf_memconf.h>
25-
#endif
2623

2724
#define SYSTEM_OFF_DELAY_S 3
2825

@@ -150,14 +147,6 @@ static void system_off(struct k_work *work)
150147
}
151148
}
152149

153-
#ifdef CONFIG_SOC_NRF54L15_CPUAPP
154-
/* Disable RAM retention in System OFF as it is not utilized by this sample. */
155-
uint32_t ram_sections = 8;
156-
157-
nrf_memconf_ramblock_ret_mask_enable_set(NRF_MEMCONF, 0, BIT_MASK(ram_sections), false);
158-
nrf_memconf_ramblock_ret2_mask_enable_set(NRF_MEMCONF, 0, BIT_MASK(ram_sections), false);
159-
#endif
160-
161150
sys_poweroff();
162151
}
163152

0 commit comments

Comments
 (0)