以前为了可以让ROS与底层可以顺利通信,我采用可开源开发板arduino ,由于arduino有ROS的库,可以按照ROS wiki上所给的教程就能够顺利的开发,但因为arduino的局限性,我以为是能够直接用嵌入式开发ROS 与底层的通讯的,(不知道为何我写这样理由的时候,就写不下去了) 。html
在ubuntu系统下安装ROS ,安装arduino ,安装eclipse,等相关软件的安装,我也是在ubuntu下顺利的配置好eclipse而且正确的下载了STM32 的程序后,以为有必要在个人博客写一下,可是可能中间的一些具体细节就可能忘记了,,,但总体的思路就是对的,并且得本身慢慢的摸索!java
首先给一些网址,我就是根据这些网址本身慢慢摸索吧linux
QEMU 安装 gnuarmeclipse.github.io/debug/qemu/#define-the-qemufolder-locationgit
How to install the QEMU binaries? gnuarmeclipse.github.io/qemu/install/github
GNU ARM Eclipse Plug-ins Features gnuarmeclipse.github.io/plugins/features/redis
Toolchain path management gnuarmeclipse.github.io/toolchain/path/ubuntu
JLink驱动下载http://www.segger.com/cms/jlink-software.htmleclipse
安装eclipse后点击HELP——eclipse marketpalce ui
在find 里输入ARM咱们会看到GNU ARM Eclipse 3.1.1(插件的版本号可能不同)点击“install”便可安装 spa
在HELP-software install GNU ARM Eclipse Plug-ins - http://gnuarmeclipse.sourceforge.net/updates
安装,能够选择所有安装。
一切准备就绪 如今就是新建工程,创建一个STM32fXX的工程一直点击下一步,不须要改什么,但同时咱们须要设置编译器的位置,官网下载gcc-arm-none-eabi-5_4-2016q2-20160622-linux.tar.bz2,而后解压,设置好编译器的路径,
下载jinkGDBserver,http://www.segger.com/cms/jlink-software.html 使用命令安装,会安装到/opt文件下,
程序创建后点击“build project”,经过JINK连接STM32开发板,以后在run configure 设置
在Executable栏目设置JinkGDBServer的路径,手动输入“Device name”好比STM32F103RB其余设置不用改变,
在startup栏目下输入下的设置
# Enable flash download and flash breakpoints. # Flash download and flash breakpoints are features of # the J-Link software which require separate licenses # from SEGGER. # Select flash device monitor flash device = STM32F103ZE # Enable FlashDL and FlashBPs monitor flash download = 1 monitor flash breakpoints = 1 # Clear all pendig breakpoints monitor clrbp # Set gdb server to little endian monitor endian little # Set JTAG speed to 5 kHz monitor speed 5 # Reset the target monitor reset monitor sleep 100 # Set JTAG speed in khz monitor speed auto # Vector table placed in Flash monitor writeu32 0xE000ED08 = 0x00000000(能够更改STM32的名称以及晶振频率等)而后“run”便可下载程序,出现GNU gdb (GNU Tools for ARM Embedded Processors) 7.10.1.20160616-cvsCopyright (C) 2015 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=i686-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".Remote connection closed从新给开发板上电就能够正常运行