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

  • 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工程用

 

 

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
### 回答1: gcc-arm-none-eabi是一款ARM Cortex-M处理器的编译工具链,可以用于开发嵌入式系统。安装gcc-arm-none-eabi需要以下步骤: 1. 下载gcc-arm-none-eabi安装包,可以从官网或者其他镜像站点下载。 2. 解压安装包到指定目录,例如/opt/gcc-arm-none-eabi。 3. 配置环境变量,将gcc-arm-none-eabi的bin目录添加到PATH环境变量中,例如在~/.bashrc文件中添加以下行: export PATH=/opt/gcc-arm-none-eabi/bin:$PATH 4. 测试安装是否成功,可以在终端中输入arm-none-eabi-gcc --version命令,如果输出gcc-arm-none-eabi的版本信息,则安装成功。 注意:在安装过程中可能会遇到一些依赖库缺失的问题,需要根据提示安装相应的依赖库。 ### 回答2: gcc-arm-none-eabi是一款在嵌入式系统开发中广泛使用的开源工具链。它可以用于开发ARM Cortex-M微控制器,并支持多种平台和操作系统。下面介绍如何在Ubuntu Linux上安装gcc-arm-none-eabi。 第一步是安装依赖项。在终端运行以下命令: ``` sudo apt-get install build-essential git lib32z1 lib32ncurses5 libxml2-dev ``` 第二步是从官网下载gcc-arm-none-eabi的tar包。可以通过以下URL访问官方网站:https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads 在下载页面,找到最新版本的tar包并下载。下载完成后,将tar包解压到任意目录下: ``` tar -xf gcc-arm-none-eabi-9-2020-q2-update-linux.tar.bz2 ``` 然后将解压的目录添加到环境变量中: ``` export PATH=$PATH:/path/to/gcc-arm-none-eabi-9-2020-q2-update/bin ``` 完成后可以输入以下命令检查是否成功: ``` arm-none-eabi-gcc --version ``` 如果可以正常打印出版本号,说明gcc-arm-none-eabi已经安装成功。 值得注意的是,上面的步骤仅适用于在Ubuntu上安装gcc-arm-none-eabi。如果在其他操作系统上使用,可能需要修改一些步骤或注明其他操作系统的安装说明。 ### 回答3: gcc-arm-none-eabi是一款开源的ARM嵌入式交叉编译器,是ARM架构下的编程必备工具之一。下面是gcc-arm-none-eabi安装过程的详细介绍: 1. 下载gcc-arm-none-eabi 在官方网站上下载最新的gcc-arm-none-eabi的版本。这些版本可能是以tar或zip文件的形式出现,根据自己的操作系统选择相应的版本。 2. 解压文件 在终端中进入下载目录,解压文件,完成后进入解压得到的文件夹。 3. 配置环境变量 打开终端,输入以下命令: export PATH=$PATH:/path/to/gcc-arm-none-eabi/bin 其中“/path/to/”是指gcc-arm-none-eabi文件夹的路径。此时,gcc-arm-none-eabi就已经可以在任何目录下使用了。 4. 测试工具链 通过编译一个简单的程序来测试gcc-arm-none-eabi是否已成功安装。 在终端中输入以下代码: #include <stdio.h> int main(void) { printf("Hello, World!\n"); return 0; } 将文件保存为hello.c,并在终端中进入该文件所在的目录。 输入以下命令来编译程序: arm-none-eabi-gcc -g -O0 -o hello hello.c 输入以下命令来运行程序: arm-none-eabi-run hello 控制台会输出“Hello, World!”,说明gcc-arm-none-eabi已经安装成功。 综上所述,gcc-arm-none-eabi安装过程需要下载最新的版本、解压文件、配置环境变量、测试工具链。这个过程需要仔细进行,以确保编程时能够正常地使用这个工具

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

风雨依依

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值