-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: align mcuboot configuration in test app
[KRKNWK-19763] Signed-off-by: Krzysztof Taborowski <krzysztof.taborowski@nordicsemi.no>
- Loading branch information
1 parent
14df970
commit 58902b0
Showing
12 changed files
with
191 additions
and
114 deletions.
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
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
45 changes: 10 additions & 35 deletions
45
tests/manual/simple_bootloader/sysbuild/mcuboot/boards/nrf54l15dk_nrf54l15_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,29 @@ | ||
# | ||
# 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 | ||
# 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 | ||
|
||
# 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_BOOT_WATCHDOG_FEED=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 |
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.