mcuboot/ext/nrf
Piotr Ciura 71966db097 boot: Support for nrf52840 with ecc keys and cryptocell
Added traslation for cryptocell peripheral for use with chip
without TrustZone.

Signed-off-by: Piotr Ciura <piotr.ciura@nordicsemi.no>
2020-08-04 07:09:33 -03:00
..
README.md
cc310_glue.c
cc310_glue.h

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.