blob: 4855db6c7b0655b2ba6dbf2ca48375a5d29e4044 [file] [log] [blame] [view]
Francesco Servidio4ff0c182021-10-20 15:27:16 +02001# Building MCUboot with nRF52840 CC310 enabled
Sigvart Hovland25ec7462019-03-11 15:57:21 +01002
3## Pre-prerequisites
4
Francesco Servidio4ff0c182021-10-20 15:27:16 +02005Clone [nrfxlib](https://github.com/NordicPlayground/nrfxlib) next to the MCUboot root folder. So that it's located `../nrfxlib` from MCUboot root folder.
Sigvart Hovland25ec7462019-03-11 15:57:21 +01006
7## Building
8
9make 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`.
10Since 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`.
11
12```
13mkdir build && cd build
Andrzej Puzdrowskifefdea22020-03-27 09:41:14 +010014cmake -GNinja -DBOARD=nrf52840dk_nrf52840
Sigvart Hovland25ec7462019-03-11 15:57:21 +010015ninja flash
16```
17
18Build 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`.