What ' s the problem
When I make the nRF51 ' s DFU project appear "No UECC.h" error:
And then find That:the UECC Library was an external library that's not a part of the SDK and it must being installed by the User.
Installing MICRO-ECC
MICRO-ECC is a open source library that's required to use the Cryptography library. When using MICRO-ECC, you must ensure compliance with the license of the library as stated in the LICENSE.txt file Included in MICRO-ECC.
The cryptography Library expects to find the compiled MICRO-ECC library in InstallFolder\external\micro-ecc\micro-ecc
.
To install MICRO-ECC, complete the following steps:
- Install version 4.9-2015-q3-update of the GCC compiler toolchain for ARM. You can use ARM's Launchpad to find the toolchain for your operating system.
- Make sure it is installed (see, for example, MinGW, GNU make, or Xcode).
- Clone the MICRO-ECC GitHub repository into
InstallFolder\external\micro-ecc\micro-ecc
.
- Enter the subdirectory for the SoC and the Toolchain, which is the 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
- Run make to compile the MICRO-ECC library.
[Email Protected]:~/documents/nrf5_sdk_12.2.0_f012efa$ CD external/micro-ecc/[email protected]-pc:~/documents/nrf5_sdk_12.2.0_f012efa/external/micro-ecc$ git clone https://GITHUB.COM/KMACKAY/MICRO-ECC[Email Protected]:~/documents/nrf5_sdk_12.2.0_f012efa/external/micro-ecc/nrf51_armgcc/armgcc$ Makemkdir_buildcompilingfile: Uecc.ccreating Library:../.. /nrf51_armgcc/armgcc/micro_ecc_lib_nrf51.a/usr/bin/arm-none-eabi-ar: Creating. /.. /nrf51_armgcc/armgcc/Micro_ecc_lib_nrf51.adone
Another problem
Now again make the DFU project would no this error,but show another error (we'll talk on it in next blog):
@beautifulzzzz Intelligent Hardware, Internet of things, love technology, focus on product blog: http: // blog.beautifulzzzz.comsina:http://weibo.com/beautifulzzzz?is_all=1
[Exception resolution] Make nRF51 DFU Project Appear "Fatal error:uecc.h:no such file or directory"