一 首先下载arm-none-linux-gnueabi-gcc交叉编译器,根据不同的需求请在网址:

https://launchpad.net/gcc-arm-embedded/+download 中下载所需的代码

 

二 建立一个目录,通过解压缩命令

tar -jxvf gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2

解压缩文件,然后

使用命令:vim  /home/XXXX/.bashrc 编辑.bashrc文件,添加环境变量。

在该文件中最后一行添加:

  1. 网友评论