[异常解决] Make nRF51 DFU Project Appear "fatal error: uECC.h: No such file or directory"(代码片段

Posted beautifulzzzz

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[异常解决] Make nRF51 DFU Project Appear "fatal error: uECC.h: No such file or directory"(代码片段相关的知识,希望对你有一定的参考价值。

 

What\'s the problem 

When I make the nRF51\'s DFU project appear "no uECC.h" error:

And then find that: The uECC library is an external library that is not a part of the SDK and it must be installed by the user. 

 

Installing micro-ecc

micro-ecc is an open source library that is 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 that is 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 that make is installed (see, for example, MinGWGNU 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 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
  5. Run make to compile the micro-ecc library.

 

btfz@btfz-pc:~/Documents/nRF5_SDK_12.2.0_f012efa$ cd external/micro-ecc/
btfz@btfz-pc:~/Documents/nRF5_SDK_12.2.0_f012efa/external/micro-ecc$ git clone https://github.com/kmackay/micro-ecc
btfz@btfz-pc:~/Documents/nRF5_SDK_12.2.0_f012efa/external/micro-ecc/nrf51_armgcc/armgcc$ make
mkdir _build
Compiling file: uECC.c
Creating library: ../../nrf51_armgcc/armgcc/micro_ecc_lib_nrf51.a
/usr/bin/arm-none-eabi-ar: creating ../../nrf51_armgcc/armgcc/micro_ecc_lib_nrf51.a
Done

 

Another Problem

Now again make the DFU project will no this error,but show another error(we will talk about it in next blog):

 


@beautifulzzzz
智能硬件、物联网,热爱技术,关注产品
博客:http://blog.beautifulzzzz.com
sina:http://weibo.com/beautifulzzzz?is_all=1

 

以上是关于[异常解决] Make nRF51 DFU Project Appear "fatal error: uECC.h: No such file or directory"(代码片段的主要内容,如果未能解决你的问题,请参考以下文章

nRF52832 开发记录 - DFU 功能

nRF52832 BLE_DFU空中升级OTA准备升级工程(SDK14.2.0)

nordic DFU固件升级

[嵌入式方案][nrf51822][LSC-01] BLE模块 从机 AT指令 BLE HID NUS 密码配对 自动回连 电量显示 OTA DFU DTM 定频 4路PWM 2路ADC4路自定义IO

nrf52832 学习笔记SDK框架分析

51822内部retention register