您当前的位置: 首页 >  ar

仙剑情缘

暂无认证

  • 0浏览

    0关注

    333博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

安装gcc-arm-none-eabi-10-2020-q4-major-win32工具(NRF52编译ECC加密文件用)

仙剑情缘 发布时间:2021-03-14 13:09:23 ,浏览量:0

  • gcc-arm-none-eabi-10-2020-q4-major-win32安装包下载

链接:https://pan.baidu.com/s/1NbpyI-fQoKvMUuct0hruxA  提取码:ikeu 

 
  • 安装后环境变量配置
C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\bin
  • nrf52 SDK包工具链make文件修改(以SDK17.02为例,其它SDK方法一样)
1.  进入components\toolchain\gcc\目录下,右键Makefile.windows文件,选择打开方式使用记事本,将原来的内容
GNU_INSTALL_ROOT := C:/Program Files (x86)/GNU Tools ARM Embedded/9 2019-q4-major/bin/
GNU_VERSION := 9.2.1
GNU_PREFIX := arm-none-eabi
修改成如下
GNU_INSTALL_ROOT := C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2020-q4-major/bin/
GNU_VERSION := 10.2.1
GNU_PREFIX := arm-none-eabi
2. 保存并关闭,然后进入external\micro-ecc目录下,使用记事本打开build_all.bat,在最后面增加pause,保存关闭
@ECHO OFF

:: This script will use git (must be in %PATH%) and arm-none-eabi tools in combination with GNU Make
:: to both fetch and compile all variants of micro-ecc for the nRF5 families

WHERE >nul 2>nul git
IF %ERRORLEVEL% NEQ 0 (
    ECHO "git is not installed. Please install and append to PATH."
)

IF NOT EXIST micro-ecc/uECC.c (
    ECHO "micro-ecc not found! Let's pull it from HEAD."
    git clone https://github.com/kmackay/micro-ecc.git
)

make -C nrf51_armgcc/armgcc
make -C nrf51_iar/armgcc
make -C nrf51_keil/armgcc
make -C nrf52hf_armgcc/armgcc
make -C nrf52hf_iar/armgcc
make -C nrf52hf_keil/armgcc
make -C nrf52nf_armgcc/armgcc
make -C nrf52nf_iar/armgcc
make -C nrf52nf_keil/armgcc

pause
3.双击运行build_all.bat批处理(运行此文件前需要保持网络良好)
"micro-ecc not found! Let's pull it from HEAD."
Cloning into 'micro-ecc'...
remote: Enumerating objects: 48, done.
remote: Counting objects: 100% (48/48), done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 1143 (delta 21), reused 28 (delta 9), pack-reused 1095                                            KiB | 13Receiving objects: 100% (1143/1143), 687.07 KiB | 9.00 KiB/s, done.

Resolving deltas: 100% (664/664), done.
Compiling file: uECC.c
make: Entering directory `C:/nrf_sdk_connect/DeviceDownload/nRF5SDK1702d674dde/external/micro-ecc/nrf51_armgcc/armgcc'
Creating library: ../../nrf51_armgcc/armgcc/micro_ecc_lib_nrf51.a
Done
make: Leaving directory `C:/nrf_sdk_connect/DeviceDownload/nRF5SDK1702d674dde/external/micro-ecc/nrf51_armgcc/armgcc'
Compiling file: uECC.c
make: Entering directory `C:/nrf_sdk_connect/DeviceDownload/nRF5SDK1702d674dde/external/micro-ecc/nrf51_iar/armgcc'
Creating library: ../../nrf51_iar/armgcc/micro_ecc_lib_nrf51.a
Done
make: Leaving directory `C:/nrf_sdk_connect/DeviceDownload/nRF5SDK1702d674dde/external/micro-ecc/nrf51_iar/armgcc'
Compiling file: uECC.c
make: Entering directory `C:/nrf_sdk_connect/DeviceDownload/nRF5SDK1702d674dde/external/micro-ecc/nrf51_keil/armgcc'
Creating library: ../../nrf51_keil/armgcc/micro_ecc_lib_nrf51.lib
Done
make: Leaving directory `C:/nrf_sdk_connect/DeviceDownload/nRF5SDK1702d674dde/external/micro-ecc/nrf51_keil/armgcc'
Compiling file: uECC.c
make: Entering directory `C:/nrf_sdk_connect/DeviceDownload/nRF5SDK1702d674dde/external/micro-ecc/nrf52hf_armgcc/armgcc'
Creating library: ../../nrf52hf_armgcc/armgcc/micro_ecc_lib_nrf52.a
Done
make: Leaving directory `C:/nrf_sdk_connect/DeviceDownload/nRF5SDK1702d674dde/external/micro-ecc/nrf52hf_armgcc/armgcc'
Compiling file: uECC.c
make: Entering directory `C:/nrf_sdk_connect/DeviceDownload/nRF5SDK1702d674dde/external/micro-ecc/nrf52hf_iar/armgcc'
Creating library: ../../nrf52hf_iar/armgcc/micro_ecc_lib_nrf52.a
Done
make: Leaving directory `C:/nrf_sdk_connect/DeviceDownload/nRF5SDK1702d674dde/external/micro-ecc/nrf52hf_iar/armgcc'
Compiling file: uECC.c
make: Entering directory `C:/nrf_sdk_connect/DeviceDownload/nRF5SDK1702d674dde/external/micro-ecc/nrf52hf_keil/armgcc'
Creating library: ../../nrf52hf_keil/armgcc/micro_ecc_lib_nrf52.lib
Done
make: Leaving directory `C:/nrf_sdk_connect/DeviceDownload/nRF5SDK1702d674dde/external/micro-ecc/nrf52hf_keil/armgcc'
Compiling file: uECC.c
make: Entering directory `C:/nrf_sdk_connect/DeviceDownload/nRF5SDK1702d674dde/external/micro-ecc/nrf52nf_armgcc/armgcc'
Creating library: ../../nrf52nf_armgcc/armgcc/micro_ecc_lib_nrf52.a
Done
make: Leaving directory `C:/nrf_sdk_connect/DeviceDownload/nRF5SDK1702d674dde/external/micro-ecc/nrf52nf_armgcc/armgcc'
Compiling file: uECC.c
make: Entering directory `C:/nrf_sdk_connect/DeviceDownload/nRF5SDK1702d674dde/external/micro-ecc/nrf52nf_iar/armgcc'
Creating library: ../../nrf52nf_iar/armgcc/micro_ecc_lib_nrf52.a
Done
make: Leaving directory `C:/nrf_sdk_connect/DeviceDownload/nRF5SDK1702d674dde/external/micro-ecc/nrf52nf_iar/armgcc'
Compiling file: uECC.c
make: Entering directory `C:/nrf_sdk_connect/DeviceDownload/nRF5SDK1702d674dde/external/micro-ecc/nrf52nf_keil/armgcc'
Creating library: ../../nrf52nf_keil/armgcc/micro_ecc_lib_nrf52.lib
Done
make: Leaving directory `C:/nrf_sdk_connect/DeviceDownload/nRF5SDK1702d674dde/external/micro-ecc/nrf52nf_keil/armgcc'
请按任意键继续. . .
4.external\micro-ecc\nrf52nf_keil\armgcc目录生成了加密库,这个库给DFU工程用

 

 

 

 

关注
打赏
1658017818
查看更多评论
立即登录/注册

微信扫码登录

0.0822s