install arm-none-eabi into cygwin with win10 OS

1 Install Cygwin with WIN10

https://cygwin.com/install.html

Installing and Updating Cygwin Packages

Installing and Updating Cygwin for 64-bit versions of Windows

Run setup-x86_64.exe any time you want to update or install a Cygwin package for 64-bit windows. The signature for setup-x86_64.exe can be used to verify the validity of this binary using this public key.

Installing and Updating Cygwin for 32-bit versions of Windows

Run setup-x86.exe any time you want to update or install a Cygwin package for 32-bit windows. The signature for setup-x86.exe can be used to verify the validity of this binary using this public key.

 

安装 make,gcc-g++,python3,unzip,

 

2 Install gcc-arm-none-eabi-9-2019-q4-major-win32-sha2.exe with Win10

2.1下载

https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads

2.2 install 

双击 gcc-arm-none-eabi-9-2019-q4-major-win32-sha2.exe;

选“Next”;最后在C:\Program Files (x86)\GNU Tools Arm Embedded中生成编译工具链

 

3 安装arm-none-eadi工具链

将安装目录 XX\GNU Tools Arm Embedded\9 2019-q4-major  复制 到cygwin的home/XXX用户目录下,重新命名9 2019-q4-major为gcc-arm,然后export到 PATH

$ export PATH=$PATH:/home/xx/gcc-arm/bin/
$ export PATH=$PATH:/home/xx/gcc-arm/lib/
$ export PATH=$PATH:/home/xx/gcc-arm/arm-none-eabi/bin/
$ export PATH=$PATH:/home/xx/gcc-arm/arm-none-eabi/lib/
$ export PATH=$PATH:/home/xx/gcc-arm/arm-none-eabi/include/
$ export PATH=$PATH:/home/xx/gcc-arm/arm-none-eabi/share/
$ export PATH=$PATH:/home/xx/gcc-arm/share/
$ export PATH=$PATH:/home/xx/gcc-arm/lib/gcc/arm-none-eabi/8.3.1/
$ export PATH=$PATH:/home/xx/gcc-arm/lib/gcc/arm-none-eabi/8.3.1/include
$ export PATH=$PATH:/home/xx/gcc-arm/lib/gcc/arm-none-eabi/8.3.1/bin
$ export PATH=$PATH:/home/xx/gcc-arm/lib/gcc/arm-none-eabi/8.3.1/lib
$ export PATH=$PATH:/home/xx/gcc-arm/lib/gcc/arm-none-eabi/8.3.1/share

 

4 在Cygwin 中验证是否可以找到arm-none-eabi-

输入arm,  点击键盘Tab键发现能找到arm-none-eabi-工具链

5将Cygwin安装文件整体copy到另一个电脑上

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值