-
Notifications
You must be signed in to change notification settings - Fork 1.5k
samples: bluetooth: central_uart: sign nRF54LM20 Dongle image #27984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| /* | ||
| * Copyright (c) 2026 Nordic Semiconductor ASA | ||
| * | ||
| * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| */ | ||
|
|
||
| /* This file modifies RRAM partitioning for MCUboot and firmware loader by | ||
| * extending slot0_partition (application image) to the end of RRAM. | ||
| * | ||
| * While the application may use extra partitions, such as storage_partition | ||
| * defined by default, this partitioning of application-dedicated region is | ||
| * irrelevant to the bootloader images. | ||
| */ | ||
|
Comment on lines
+7
to
+13
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is false? I don't follow this, the pre-programmed bootloader will not allow you to write this
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not false according to @tomchy and @nvlsianpu. MCUBoot and firmware loader don't care whether the application uses all its region for the code or for data.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wrote the feature, neither of them did. Configuring hello_world for this board with MCUboot gives the following for MCUboot: likewise the same for
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. discussed f2f, the comment is not false per se, but the takeaway is that this layout should be configured by default in MCUboot and fw_loader for the dongle (not in the sample). |
||
|
|
||
| /delete-node/ &storage_partition; | ||
|
|
||
| &slot0_partition { | ||
| /* Start matches board layout */ | ||
| reg = <0x23000 DT_SIZE_K(1896)>; | ||
| }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # | ||
| # Copyright (c) 2026 Nordic Semiconductor ASA | ||
| # | ||
| # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| # | ||
| CONFIG_SYS_CLOCK_EXISTS=n | ||
| CONFIG_NRF_GRTC_TIMER=n | ||
| CONFIG_CRACEN_IKG=n | ||
| CONFIG_FPROTECT=y | ||
|
|
||
| # Disable run-time CRACEN provisioning of TRNG data. | ||
| # KMU slots 248, 249 shall be pre-provisioned while programming with secret TRNG values instead. | ||
| CONFIG_CRACEN_PROVISION_PROT_RAM_INV_SLOTS_ON_INIT=n | ||
|
|
||
| CONFIG_NRF_RRAM_WRITE_BUFFER_SIZE=32 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| /* | ||
| * Copyright (c) 2026 Nordic Semiconductor ASA | ||
| * | ||
| * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| */ | ||
|
|
||
| / { | ||
| chosen { | ||
| zephyr,code-partition = &boot_partition; | ||
| }; | ||
| }; | ||
|
|
||
| /* ensure same RRAM layout in firmware_loader as in MCUboot */ | ||
| #include "../../../nrf54lm20dongle_dfu_partitions.dtsi" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # | ||
| # Copyright (c) 2026 Nordic Semiconductor ASA | ||
| # | ||
| # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| # | ||
|
|
||
| CONFIG_BOOT_FIRMWARE_LOADER_ENTRANCE_GPIO=y | ||
| CONFIG_BOOT_FIRMWARE_LOADER_NO_APPLICATION=y | ||
|
|
||
| CONFIG_PM=n | ||
|
|
||
| CONFIG_MAIN_STACK_SIZE=10240 | ||
|
|
||
| CONFIG_BOOT_SWAP_SAVE_ENCTLV=n | ||
| CONFIG_BOOT_ENCRYPT_IMAGE=n | ||
|
|
||
| CONFIG_BOOT_UPGRADE_ONLY=n | ||
| CONFIG_BOOT_BOOTSTRAP=n | ||
|
|
||
| CONFIG_FLASH=y | ||
| CONFIG_GPIO=y | ||
|
|
||
| ### Decrease footprint by ~4 KB in comparison to CBPRINTF_COMPLETE=y | ||
| CONFIG_CBPRINTF_NANO=y | ||
| ### Use picolibc to reduce flash usage | ||
| CONFIG_PICOLIBC=y | ||
| ### Disable malloc arena because we don't need it | ||
| CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=0 | ||
|
|
||
| # Reduce memory consumption | ||
| CONFIG_BOOT_BANNER=n | ||
| CONFIG_NCS_BOOT_BANNER=n | ||
| CONFIG_CLOCK_CONTROL=n | ||
| CONFIG_NRF_GRTC_START_SYSCOUNTER=n | ||
| CONFIG_SPI_NOR=n | ||
| CONFIG_SERIAL=n | ||
| CONFIG_CONSOLE=n | ||
| CONFIG_UART_CONSOLE=n | ||
| CONFIG_PRINTK=n | ||
| CONFIG_USE_SEGGER_RTT=n | ||
|
|
||
| # Activate Link Time Optimization (LTO) | ||
| CONFIG_LTO=y | ||
| CONFIG_ISR_TABLES_LOCAL_DECLARATION=y | ||
|
|
||
| # Improve debugging experience by disabling reset on fatal error | ||
| CONFIG_RESET_ON_FATAL_ERROR=n |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| CONFIG_CDC_ACM_SERIAL_VID=0x1915 | ||
| CONFIG_CDC_ACM_SERIAL_PID=0x541A | ||
| CONFIG_CDC_ACM_SERIAL_MANUFACTURER_STRING="Nordic Semiconductor ASA" | ||
| CONFIG_CDC_ACM_SERIAL_PRODUCT_STRING="nRF54LM20 Dongle Bootloader" | ||
| CONFIG_MCUMGR_GRP_ZBASIC_STORAGE_ERASE=n |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| /* | ||
| * Copyright (c) 2026 Nordic Semiconductor ASA | ||
| * | ||
| * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| */ | ||
|
|
||
| / { | ||
| chosen { | ||
| /delete-property/ zephyr,console; | ||
| /delete-property/ zephyr,shell-uart; | ||
| /delete-property/ zephyr,bt-mon-uart; | ||
| /delete-property/ zephyr,bt-c2h-uart; | ||
| }; | ||
| }; | ||
|
|
||
| &zephyr_udc0 { | ||
| /delete-node/ board_cdc_acm_uart; | ||
| }; | ||
|
|
||
| /* ensure same RRAM layout in firmware_loader as in MCUboot */ | ||
| #include "../nrf54lm20dongle_dfu_partitions.dtsi" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # | ||
| # Copyright (c) 2026 Nordic Semiconductor ASA | ||
| # | ||
| # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
| # | ||
|
|
||
| SB_CONFIG_BOOTLOADER_MCUBOOT=y | ||
| SB_CONFIG_MCUBOOT_MODE_FIRMWARE_UPDATER=y | ||
| SB_CONFIG_MCUBOOT_SIGNATURE_USING_KMU=y | ||
| SB_CONFIG_MCUBOOT_GENERATE_DEFAULT_KEY_FILE=y | ||
| SB_CONFIG_FIRMWARE_LOADER_IMAGE_USB_MCUMGR=y | ||
| SB_CONFIG_BOOT_SIGNATURE_TYPE_PURE=y | ||
|
|
||
| SB_CONFIG_MCUBOOT_MODE_FIRMWARE_UPDATER_BOOT_MODE_ENTRANCE=y |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| CONFIG_CDC_ACM_SERIAL_VID=0x1915 | ||
| CONFIG_CDC_ACM_SERIAL_PID=0x541A | ||
| CONFIG_CDC_ACM_SERIAL_MANUFACTURER_STRING="Nordic Semiconductor ASA" | ||
| CONFIG_CDC_ACM_SERIAL_PRODUCT_STRING="nRF54LM20 Dongle Bootloader" | ||
| CONFIG_MCUMGR_GRP_ZBASIC_STORAGE_ERASE=n |
Uh oh!
There was an error while loading. Please reload this page.