zoukankan      html  css  js  c++  java
  • [异常解决] 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 InstallFolderexternalmicro-eccmicro-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 InstallFolderexternalmicro-eccmicro-ecc.
    4. Enter the subdirectory for the SoC and the toolchain that you are using to build your application:
      • InstallFolderexternalmicro-ecc rf51_keilarmgcc
      • InstallFolderexternalmicro-ecc rf52_keilarmgcc
      • InstallFolderexternalmicro-ecc rf51_iararmgcc
      • InstallFolderexternalmicro-ecc rf52_iararmgcc
      • InstallFolderexternalmicro-ecc rf51_armgccarmgcc
      • InstallFolderexternalmicro-ecc rf52_armgccarmgcc
    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
  • 相关阅读:
    python文件压缩示例(压缩当前目录)
    C#实现Socket聊天室
    使用微软企业库5.0进行WCF服务边界上的异常保护
    使用python的内置ctypes模块与c、c++写的dll进行交互
    Python使用tkinter库创建图形界面HelloWorld
    手动处理Team Foundation Server 2010 数据仓库和分析服务数据库
    Linux mmap
    iwconfig linux 命令行配置无线网卡
    Qt中文乱码,设置字符集
    Flex 宋体、黑体、楷体、仿宋字体样式
  • 原文地址:https://www.cnblogs.com/zjutlitao/p/6265314.html
Copyright © 2011-2022 走看看