- 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方法一样)
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工程用