I have create a new DFU_public_key.c file with nrf_util and replace the existing file in the dfu_req_handling folder (MacOSX).
I had to change the name of the nRF5_SDK_14.2-2.0_17b948a to nRF5_SDK_14 because Terminal.app had problem with the name while navigating directories.
When I compile the program with the new key in place, I have the following compiling error :
Compiling ‘dfu_public_key.c’
expected '}' before numeric constant
to match this '{'
The error point at the second 0x.... line (line 11).
Here is the file with the key hidden:
/* This file was automatically generated by nrfutil on 2019-12-13 (YY-MM-DD) at 15:42:07 */ #include "stdint.h" #include "compiler_abstraction.h" /** @brief Public key used to verify DFU images */ __ALIGN(4) const uint8_t pk[64] = { 0x.... 0x.... };
I don't see the problem with the file.
Help would be appreciate. Thanks