-
Notifications
You must be signed in to change notification settings - Fork 678
Using the nrf52840dk_nrf52840 QSPI NOR flash with MCUboot Zephyr
Fabio Utzig edited this page Nov 10, 2020
·
1 revision
To enable MCUBoot (and mcumgr) to use the secondary slot stored in the QSPI NOR flash someone can use the provided overlay and configuration files under boot/zephyr/boards
.
To build MCUboot:
west build -b nrf52840dk_nrf52840 -d build_boot bootloader/mcuboot/boot/zephyr -- -DDTC_OVERLAY_FILE=$(pwd)/bootloader/mcuboot/boot/zephyr/boards/nrf52840dk_qspi_nor_secondary.overlay -DOVERLAY_CONFIG="$(pwd)/bootloader/mcuboot/boot/zephyr/boards/nrf52840dk_qspi_nor.conf;$(pwd)/bootloader/mcuboot/boot/zephyr/boards/nrf52840dk_qspi_secondary_boot.conf
west flash -d build_boot
To build an app (smp_svr in the example):
west build -b nrf52840dk_nrf52840 zephyr/samples/subsys/mgmt/mcumgr/smp_svr -- -DDTC_OVERLAY_FILE=$(pwd)/bootloader/mcuboot/boot/zephyr/boards/nrf52840dk_qspi_nor_secondary.overlay -DOVERLAY_CONFIG="overlay-bt.conf;$(pwd)/bootloader/mcuboot/boot/zephyr/boards/nrf52840dk_qspi_nor.conf"
west sign -t imgtool -- --key bootloader/mcuboot/root-rsa-2048.pem -v 1.0.0
west flash --hex-file build/zephyr/zephyr.signed.hex
- 2023-05-23 TSC
- 2023-03-28 TSC
- 2023-02-28 TSC
- 2023-02-14 TSC
- 2023-01-27 board
- 2023-01-24 TSC
- 2023-01-10 TSC
- 2022-12-02 board
- 2022-09-27 TSC
- 2022-09-13 TSC
- 2022-04-26 TSC
- 2022-04-12 TSC
- 2022-03-08 TSC
- 2022-02-22 TSC
- 2022-02-08 TSC
- 2022-01-25 TSC
- 2022-01-11 TSC
- 2021-12-14 TSC
- 2021-11-23 TSC
- 2021-11-09 TSC
- 2021-10-26 TSC
- 2021-10-12 TSC
- 2021-09-28 TSC
- 2021-09-14 TSC
- 2021-08-24 TSC
- 2021-07-13 TSC
- 2021-05-11 TSC
- 2020 Meeting Minutes