This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Compiling ‘dfu_public_key.c’ error

"....\dfu_public_key.c(20): error: #35: #error directive: "Debug public key not valid for production. Please see github.com/NordicSemiconducto... to generate it.

i found answers for linux OS in devzone, i need it for windows

Parents
  • If you are just testing out the DFU examples, you can use the project found in the [board_name]_debug folder in the secure DFU bootloader example. This will add a define that lets you use the template key. If you are using DFU for production, you will have to generate your own private/public key pair and add the public key to dfu_public_key.c, as described here.

  • Did you get it working? You can use nrfutil to create the keys in the correct format. You are supposed to store the generated public key in a new dfu_public_key.c file that replaces the old "debug-file".

Reply Children
No Data