mcuboot/ext/nrf
Andrzej Puzdrowski fefdea20d2 zephyr:boards nrf52840_pca10056 rename to nrf52840dk_nrf52840
Board was renamed here:
https://github.com/zephyrproject-rtos/zephyr/pull/23524/

Patch aligns the name in MCUBoot and decouples one of nrf52840 dedicated
overlay from exact board name.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2020-03-27 15:35:23 -06:00
..
README.md zephyr:boards nrf52840_pca10056 rename to nrf52840dk_nrf52840 2020-03-27 15:35:23 -06:00
cc310_glue.c ext: nrf: Add nrf cc310 glue layer 2019-03-25 07:12:34 -03:00
cc310_glue.h dts: Include devicetree.h instead of generated_dts_board.h 2020-01-16 11:41:28 +01:00

README.md

Building MCUBoot with nRF52840 CC310 enabled

Pre-prerequisites

Clone nrfxlib next to the mcuboot root folder. So that it's located ../nrfxlib from mcuboots 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.