@rmokerone
2016-09-06T03:30:32.000000Z
字数 2289
阅读 613
ubuntu
江柳@AHPU_UESA@2015.08.03
masong@hydra:~$ arm-none-eabi-gccThe program 'arm-none-eabi-gcc' is currently not installed. You can install it by typing:sudo apt-get install gcc-arm-none-eabi
输入如下命令进行安装:
sudo apt-get install gcc-arm-none-eabi
Building dependency treeReading state information... DoneThe following extra packages will be installed:binutils-arm-none-eabi libnewlib-arm-none-eabi libnewlib-devlibstdc++-arm-none-eabi-newlibSuggested packages:libnewlib-docThe following NEW packages will be installed:binutils-arm-none-eabi gcc-arm-none-eabi libnewlib-arm-none-eabilibnewlib-dev libstdc++-arm-none-eabi-newlib0 upgraded, 5 newly installed, 0 to remove and 5 not upgraded.Need to get 60.7 MB of archives.After this operation, 448 MB of additional disk space will be used.
能够看到这里使用的库使newlib,不过这个库我在使用的时候一直bug不断,难道是我的使用方式不正确???
安装完成,测试下。
masong@hydra:~$ arm-none-eabi-gcc --versionarm-none-eabi-gcc (4.8.3-18ubuntu2+12) 4.8.3Copyright (C) 2013 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
安装成功!!!
这里只安装了arm-none-eabi-gcc,arm-none-eabi-gdb还没有进行安装,输入如下命令。
sudo apt-get install gdb-arm-none-eabi
进行安装。
安装完成进行测试:
masong@hydra:~$ arm-none-eabi-gdb --versionGNU gdb (7.8-0ubuntu1+6) 7.8Copyright (C) 2014 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>This is free software: you are free to change and redistribute it.There is NO WARRANTY, to the extent permitted by law. Type "show copying"and "show warranty" for details.This GDB was configured as "--host=x86_64-linux-gnu --target=arm-none-eabi".Type "show configuration" for configuration details.For bug reporting instructions, please see:<http://www.gnu.org/software/gdb/bugs/>.Find the GDB manual and other documentation resources online at:<http://www.gnu.org/software/gdb/documentation/>.For help, type "help".Type "apropos word" to search for commands related to "word".
这个再ubuntu的源里面是没有的需要从网上下载。下载地址如下,选择对应的版本下载:
https://www.segger.com/jlink-software.html
ps:貌似要翻墙。。。
chmod +x jlink_5.0.11_x86_64.debsudo dpkg -i jlink_5.0.11_x86_64.deb
安装完成。
masong@hydra:~/Downloads$ JLinkExe --versionSEGGER J-Link Commander V5.00k ('?' for help)Compiled Jul 31 2015 15:51:24Unknown command line option --version.
版本为V5.0了。
现在再ubuntu上进行ARM开发的所有软件都已经安装完成了。
一个字,爽~