mcuboot/ext/nrf
Jamie McCrae fda4afc939 zephyr: Update board names for hwmv2
Updates board names as per hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:37:29 +00:00
..
README.md zephyr: Update board names for hwmv2 2024-03-01 14:37:29 +00:00
cc310_glue.c nrf: cc310: Change license to Apache-2 2023-02-28 08:21:01 -07:00
cc310_glue.h bootutil: Replace hash with SHA384 when P384 is used 2023-09-12 16:29:11 +02:00

README.md

Building MCUboot with nRF52840 CC310 enabled

Prerequisites

Clone nrfxlib next to the MCUboot root folder. So that it's located ../nrfxlib from MCUboot root folder.

Building

make sure root-ec-p256.pem is set as the certificate and that CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256 is selected not CONFIG_BOOT_SIGNATURE_TYPE_RSA in prj.conf of boot/zephyr. Since it defaults to tinycrypt you'll have to go into menuconfig and change the implementation selection to cc310 or also set this in prj.conf.

mkdir build && cd build
cmake -GNinja -DBOARD=nrf52840dk/nrf52840
ninja flash

Build a hello world example in zephyr and sign it with imgtool.py with the root-ec-p256.pem and flash it at FLASH_AREA_IMAGE_0.