Roman Okhrimenko | dc0ca08 | 2023-06-21 20:49:51 +0300 | [diff] [blame] | 1 | # Building MCUboot with nRF52840 CC310 enabled |
Sigvart Hovland | 25ec746 | 2019-03-11 15:57:21 +0100 | [diff] [blame] | 2 | |
Roman Okhrimenko | dc0ca08 | 2023-06-21 20:49:51 +0300 | [diff] [blame] | 3 | ## Prerequisites |
Sigvart Hovland | 25ec746 | 2019-03-11 15:57:21 +0100 | [diff] [blame] | 4 | |
Roman Okhrimenko | dc0ca08 | 2023-06-21 20:49:51 +0300 | [diff] [blame] | 5 | Clone [nrfxlib](https://github.com/NordicPlayground/nrfxlib) next to the MCUboot root folder. So that it's located `../nrfxlib` from MCUboot root folder. |
Sigvart Hovland | 25ec746 | 2019-03-11 15:57:21 +0100 | [diff] [blame] | 6 | |
| 7 | ## Building |
| 8 | |
| 9 | 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`. |
| 10 | 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`. |
| 11 | |
| 12 | ``` |
| 13 | mkdir build && cd build |
Andrzej Puzdrowski | fefdea2 | 2020-03-27 09:41:14 +0100 | [diff] [blame] | 14 | cmake -GNinja -DBOARD=nrf52840dk_nrf52840 |
Sigvart Hovland | 25ec746 | 2019-03-11 15:57:21 +0100 | [diff] [blame] | 15 | ninja flash |
| 16 | ``` |
| 17 | |
| 18 | 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`. |