Skip to content

Commit 12dc7e3

Browse files
Damian-Nordiccarlescufi
authored andcommitted
[nrf noup] boot/zephyr/boards: defaults nrf54lm20dongle
Define defaults for nRF54LM20 Dongle so this target can have the bootloader enabled by default for all applications without having to provide extra overlays for the MCUBoot. Signed-off-by: Damian Krolik <damian.krolik@nordicsemi.no> (cherry picked from commit d36845e)
1 parent eb22008 commit 12dc7e3

3 files changed

Lines changed: 45 additions & 2 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
CONFIG_BOOT_FIRMWARE_LOADER_ENTRANCE_GPIO=y
8+
CONFIG_BOOT_FIRMWARE_LOADER_NO_APPLICATION=y
9+
CONFIG_GPIO=y
10+
CONFIG_CRACEN_IKG=n
11+
CONFIG_NRF_RRAM_WRITE_BUFFER_SIZE=32
12+
CONFIG_NCS_MCUBOOT_DISABLE_SELF_RWX=y
13+
14+
# Disable run-time CRACEN provisioning of TRNG data.
15+
# KMU slots 248, 249 shall be pre-provisioned while programming with secret TRNG values instead.
16+
CONFIG_CRACEN_PROVISION_PROT_RAM_INV_SLOTS_ON_INIT=n
17+
18+
# Reduce memory consumption
19+
CONFIG_LOG=n
20+
CONFIG_BOOT_BANNER=n
21+
CONFIG_NCS_BOOT_BANNER=n
22+
CONFIG_NCS_APPLICATION_BOOT_BANNER_STRING=""
23+
CONFIG_CLOCK_CONTROL=n
24+
CONFIG_NRF_GRTC_START_SYSCOUNTER=n
25+
CONFIG_SPI_NOR=n
26+
CONFIG_SERIAL=n
27+
CONFIG_CONSOLE=n
28+
CONFIG_UART_CONSOLE=n
29+
CONFIG_PRINTK=n
30+
CONFIG_USE_SEGGER_RTT=n
31+
CONFIG_SYS_CLOCK_EXISTS=n
32+
CONFIG_NRF_GRTC_TIMER=n
33+
34+
# Activate Link Time Optimization (LTO)
35+
CONFIG_LTO=y
36+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
37+
38+
# Improve debugging experience by disabling reset on fatal error
39+
CONFIG_RESET_ON_FATAL_ERROR=n

boot/zephyr/boards/nrf54lm20dongle_nrf54lm20b_cpuapp.overlay

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
/ {
8+
chosen {
9+
zephyr,code-partition = &boot_partition;
10+
};
11+
};
12+
713
/* This is nRF54lm20dongle_nrf54lm20b_cpuapp peculiar partitioning for MCUboot and firmware loader
814
* slot0_partition spans RRAM with can be update by the firmware loader and booted by MCUboot.
915
* beginning of the slot0_partition must match with the beginning of the slot0_partition of the user

boot/zephyr/socs/nrf54lm20b_cpuapp.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,3 @@ CONFIG_SPI_NOR=n
99

1010
# TODO: below are not yet supported and need fixing
1111
CONFIG_FPROTECT=n
12-
13-
CONFIG_BOOT_WATCHDOG_FEED=n

0 commit comments

Comments
 (0)