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

SDK12 DFU examples compilation error

When I try to compile DFU examples, I get the following errors :

  1. "..\..\dfu_public_key.c(20): error: #35: #error directive: "Debug public key not valid for production. Please see github.com/.../README.md to generate it"
  2. "#error "Debug public key not valid for production. Please see github.com/.../README.md to generate it"
  3. ..\..\..\..\..\components\libraries\ecc\ecc.c(25): error: #5: cannot open source input file "uECC.h": No such file or directory

Do you have the same behaviour?

Parents Reply Children
  • @bjorn-spockeli

    The link says

    1. Clone the micro-ecc GitHub repository into InstallFolder\external\micro-ecc\micro-ecc.

    2. Enter the subdirectory for the SoC and the toolchain that you are using to build your application:

      InstallFolder\external\micro-ecc\nrf51_keil\armgcc

      InstallFolder\external\micro-ecc\nrf52_keil\armgcc

      InstallFolder\external\micro-ecc\nrf51_iar\armgcc

      InstallFolder\external\micro-ecc\nrf52_iar\armgcc

      InstallFolder\external\micro-ecc\nrf51_armgcc\armgcc

      InstallFolder\external\micro-ecc\nrf52_armgcc\armgcc

    Doubts

    1. Should I create micro-ecc directory inside micro-ecc. I already have a micro-ecc directory inside external

    2. If that's the case, why is the second point talks about the directory /external/micro-cc/.. instead of /external/micro-ecc/micro-ecc/.. ?

    3. Also, I didn't find any 'Makefile' in the directory downloaded from Github. I have downloaded MinGW and using 'mingw32-make' in Windows CMD. Is that the right way to 'make' in Windows?

    4. I just copied the cloned repository to /external/micro-ecc/ to a folder named micro-ecc and compiled the project (in the directory C:\wecare\Nordic\nRF5_SDK_12.2.0_f012efa\examples\dfu\bootloader_secure\pca10028_debug\arm5_no_packs). It gives the following error

      ._build\nrf51422_xxac_s130.axf: error: L6002U: Could not open file ..........\external\micro-ecc\nrf51_keil\armgcc\micro_ecc_lib_nrf51.lib: No such file or directory

      I am not able to find any .lib file anywhere inside /external/ directory

Related