I am stuck on generating bootloader signed with my own keys and compiling it with Segger. Status as follows:
Public/private keys are created with “nrfutil keys generate”. Files are named as “private.pem” and “public_pem.c”.
Project “ruuvi.nrf5_sdk15_bootloader.c” is correctly structured as in its “README.md” file, and in fact it compiles flawlessly with the key pair provided by Ruuvi.
The unclear topic is exactly how to integrate my own keys on the project. README indiates to “use production version”.
a. Where exactly on “Build options” to change between debug and production version? Couldn’t find it…
b. I wonder if you did actually meant change in “Preprocessor Definitions”? There is a NDEBUG statement at Solution level, which is inherited to Project level…
c. Should the file “dfu_public_key.c” be edited to have deleted its native public key and replaced by mine?
Many thans in advance.