install arm-none-eabi into cygwin with win10 OS

给你一囗甜甜゛ 提交于 2020-01-28 11:54:37

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-工具链

 

 

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!