-
Notifications
You must be signed in to change notification settings - Fork 27
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
samples: new mcuboot configuration #652
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
tests/manual/simple_bootloader/boards/nrf54l15dk_nrf54l10_cpuapp.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
CONFIG_POWEROFF=y | ||
|
||
# nRF54L15DK uses SPI NOR external flash for DFU | ||
CONFIG_FLASH=y | ||
CONFIG_SPI=y | ||
CONFIG_SPI_NOR=y | ||
CONFIG_MULTITHREADING=y | ||
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y | ||
CONFIG_MCUMGR_GRP_IMG_ALLOW_ERASE_PENDING=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 18 additions & 21 deletions
39
tests/manual/simple_bootloader/pm_static_nrf54l15dk_nrf54l10_cpuapp.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
tests/manual/simple_bootloader/sysbuild/mcuboot/boards/nrf52840dk_nrf52840.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# | ||
# Copyright (c) 2023 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
# Configure QSPI for external flash | ||
CONFIG_NORDIC_QSPI_NOR=y | ||
CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096 | ||
CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE=16 | ||
|
||
# Disable the Flash Patch and Breakpoint (FPB) feature | ||
# to increase the security of the device. | ||
CONFIG_DISABLE_FLASH_PATCH=y | ||
CONFIG_REBOOT=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 20 additions & 37 deletions
57
tests/manual/simple_bootloader/sysbuild/mcuboot/boards/nrf54l15dk_nrf54l10_cpuapp.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,37 @@ | ||
# | ||
# Copyright (c) 2021 Nordic Semiconductor ASA | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
# TODO: NCSDK-28931: Cannot use fprotect twice, so disable it in MCUboot to | ||
# test protecting Matter factory data. It can be enabled while there is a support | ||
# test protecting factory data. It can be enabled while there is a support | ||
# for protection more than one region. | ||
CONFIG_FPROTECT=n | ||
|
||
# TODO: Workaround, disable memory guard to avoid false faults in application after boot | ||
CONFIG_HW_STACK_PROTECTION=n | ||
|
||
CONFIG_BOOT_WATCHDOG_FEED=n | ||
|
||
# Disable all debug features | ||
CONFIG_USE_SEGGER_RTT=n | ||
CONFIG_SHELL=n | ||
CONFIG_OPENTHREAD_SHELL=n | ||
CONFIG_CONSOLE=n | ||
CONFIG_UART_CONSOLE=n | ||
CONFIG_SERIAL=n | ||
CONFIG_LOG=n | ||
CONFIG_LOG_MODE_MINIMAL=n | ||
CONFIG_ASSERT_VERBOSE=n | ||
CONFIG_ASSERT_NO_FILE_INFO=y | ||
CONFIG_PRINTK=n | ||
CONFIG_PRINTK_SYNC=n | ||
CONFIG_THREAD_NAME=n | ||
CONFIG_BOOT_BANNER=n | ||
|
||
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y | ||
|
||
# Ensure that the qspi driver is disabled by default | ||
CONFIG_GPIO=n | ||
CONFIG_SPI=n | ||
CONFIG_SPI_NOR=n | ||
CONFIG_NORDIC_QSPI_NOR=n | ||
CONFIG_MULTITHREADING=n | ||
|
||
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y | ||
|
||
|
||
# Workaroud: fprotect and watchdog feed | ||
# are not supported in NCS v2.6.0 | ||
CONFIG_FPROTECT=n | ||
CONFIG_BOOT_WATCHDOG_FEED=n | ||
|
||
# Currently, without tickless kernel, the SYSCOUNTER value after the software | ||
# reset is not set properly and due to that the first system interrupt is not called | ||
# in the proper time - the SYSCOUNTER value is set to the value from before | ||
# reset + 1. Hence, the reboot time increases more and more. | ||
# To avoid it enable tickles kernel for mcuboot. | ||
CONFIG_TICKLESS_KERNEL=y | ||
|
||
CONFIG_BOOT_WATCHDOG_FEED=n | ||
|
||
# nRF54L15DK uses SPI NOR external flash | ||
CONFIG_GPIO=y | ||
CONFIG_SPI=y | ||
CONFIG_SPI_NOR=y | ||
CONFIG_SPI_NOR_SFDP_DEVICETREE=y | ||
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096 | ||
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y | ||
|
||
# required by SPI driver | ||
CONFIG_MULTITHREADING=y | ||
|
||
# Activate LTO | ||
CONFIG_LTO=y | ||
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use SOC series Kconfig instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in next pr: #659
should be quick to merge, then I rebase this one