[Exception resolution] Make nRF51 DFU Project Appear "Fatal error:uecc.h:no such file or directory"

Source: Internet
Author: User

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:

  1. 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.
  2. Make sure it is installed (see, for example, MinGW, GNU make, or Xcode).
  3. Clone the MICRO-ECC GitHub repository into InstallFolder\external\micro-ecc\micro-ecc .
  4. 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
  5. 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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.