[异常解决] 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://www.cnblogs.com/zjutlitao/p/6265314.html,如需转载请自行联系原作者

相关文章
fatal error: ft2build.h: 没有那个文件或目录
fatal error: ft2build.h: 没有那个文件或目录
281 0
|
编解码 C++ Python
成功解决LINK : fatal error LNK1181: 无法打开输入文件“avdevice.lib” error: command 'D:\\Program Files (x86)\\Micr
成功解决LINK : fatal error LNK1181: 无法打开输入文件“avdevice.lib” error: command 'D:\\Program Files (x86)\\Micr
成功解决LINK : fatal error LNK1181: 无法打开输入文件“avdevice.lib” error: command 'D:\\Program Files (x86)\\Micr
|
4月前
|
Linux Windows
fatal error C1083 无法打开包括文件 “sys/time.h” No such file or directory
fatal error C1083 无法打开包括文件 “sys/time.h” No such file or directory
142 0
|
6月前
|
Python
ERROR: file or directory not found: xx.py
​ 1、问题出现原因 在vscode中已导入pytest框架,做自动化demo小测试,运行Python文件一直出现如题错误,截图如下: ERROR: file or directory not found: xx.py  2、解决办法 1)直接把该文件移到当前主目录下,放在PYTHON-STUDY下 2)VSCode中右键tuopan.py文件,选择[在集成终端中打开],或者通过CD命令进入到tuopan.py文件所在目录 然后输入以下命令即可: 注:上述命令不是换行,在d:/前有空格 ,第一行信息为python所在安装路径,空格后的换行为运行的python文件的所在路径  
71 0
|
6月前
fatal error: jni.h: No such file or directory
fatal error: jni.h: No such file or directory
|
8月前
cancal报错 config dir not found
cancal报错 config dir not found
|
C语言 Python Windows
gcc: error: /FIPython.h: File o directory non esistente
gcc: error: /FIPython.h: File o directory non esistente
90 0
fatal error C1083: 无法打开包括文件:“fenv.h”: No such file or directory
fatal error C1083: 无法打开包括文件:“fenv.h”: No such file or directory
133 0
|
Linux C语言 C++
VS编译出错:fatal error C1083: 无法打开包括文件:“stdbool.h”: No such file or directory
VS编译出错:fatal error C1083: 无法打开包括文件:“stdbool.h”: No such file or directory
502 0
conftest.c:93:10: fatal error: srtp/srtp.h: No such file or directory
conftest.c:93:10: fatal error: srtp/srtp.h: No such file or directory
91 0