ECLIPSE + STM32

来源:互联网 发布:gotomeeting软件 编辑:程序博客网 时间:2024/06/07 14:18

参考http://blog.csdn.net/at91rm9200/article/details/22853621,将自己的做法记录一下:

(1)看自己电脑里面有没有java?(http://blog.csdn.net/cddcj/article/details/55258348)

一看有java,版本是1.7.0_21。


是个64位系统的java,在控制面板里面看看系统,果然是64bit。


(2)有了java,就可以安装eclips,那么就要先下载个。

在http://www.eclipse.org/downloads/这个网站,竟然直接告诉我下载64位的,看样是自动识别了我的电脑了,如下:






好,现在下载,看看下载的快不快?

嗯  自动提供的下载镜像,是日本的,竟然花钱(我理解错了,可以donate)。于是选了个大连东软的,(东软还是很牛的,看样子!!!


希望自己下载的没错,安装试试吧。

双击,提示:


好,那么我是不是考虑把java升级到V1.8,查查资料,如下:

http://blog.csdn.net/hyj_13/article/details/50189471

https://www.zhihu.com/question/26844110

http://www.cnblogs.com/freedom-wy/p/6945936.html

因此感觉还是java1.7好点,所以要弄个低版本的eclipse。



然后找了个链接,发现原先下载的似乎不对啊,这个应该是:

http://www.eclipse.org/downloads/packages/

这个属于

Eclipse Oxygen R Packages

Eclipse Oxygen R Packages

然后选择Eclipse IDE for C/C++ Developers,
下载eclipse-cpp-oxygen-R-win32-x86_64.zip。解压缩,挺耗时间,是个绿色版,不用安装。

然后按照http://blog.csdn.net/at91rm9200/article/details/22853621的步骤安装CDT,
网站是http://www.eclipse.org/cdt/downloads.php,
选择CDT9.3.1。
不过看网页的意思:好像是说已经提供现成的ECLIPSE和CDT集中在一起的包了。就是说要么是单独下载eclipse 然后下载CDT,然后把CDT添加到Eclipse中。要么是直接下载集成包,里面既有CDT又有eclipse。
========================================================================

CDT Downloads

All downloads are provided under the terms and conditions of the Eclipse Foundation Software User Agreementunless otherwise specified.

The CDT can either be installed as part of the Eclipse C/C++ IDE packaged zip file or installed into an existing Eclipse using the "Install New Software..." dialog and entering the p2 repository URLs listed below.

CDT also provides its debugger as a stand-alone RCP application which can be downloaded and installed on its own. You can find more information about the Stand-alone Debugger on the Wiki.

CDT 9.3.1 for Eclipse Oxygen

Eclipse package: Eclipse C/C++ IDE for Oxygen.0.

p2 software repository: http://download.eclipse.org/tools/cdt/releases/9.3

The git repo have been tagged with the CDT_9_3_1 tag. You can download the source from the web interface.

Archived p2 repos:

  • cdt-9.3.1.zip
  • cdt-9.3.0.zip
===============================================================================================

打开eclipse,出现如下:

于是下载个别的eclipse版本,就是这个eclipse-cpp-kepler-SR2-win32-x86_64.zip
这次终于能打开,出现了画面:

然后打开http://www.eclipse.org/cdt/downloads.php,到对应的CRT。

=============
把上面的总结一下,下载个eclipse kepler。然后找对应的CRT。然后在安装arm 插件,就在MDK安装完之后,有插件。直接导入到Eclipse里面就行。
==============
然后见eclipse工程,结果怎么出不来STM32的demo啊。和网上的别人的教程不大一样。人家的教程里面都带有STM32的demo。
还有说还需要交叉编译器的环境配置的。

于是就参考这个http://www.stmcu.org/module/forum/thread-608698-1-1.html
-----------------------------------------------
1.3安装Eclipse插件 – 编译工具
在Eclipse的install new software里面添加如下信息:
Name: GNU ARM Eclipse Plug-ins
Location: http://gnuarmeclipse.sourceforge.net/updates
---------------------------------
安装插件出现几个选项,选了几个,这个插件过程中出现



=====================
宣布以上作废。
搞了好久,就在刚刚2017年9月16日15点26,星期六,终于安装成功eclipse arm plug了。这个eclipse 真够难安装的了。估计很多人都遭受了折磨。eclipse怎么不同版本还起了不同的名字。不太懂为什么这么弄。
好吧  说一说我的安装过程,首先是网上找eclipse-cpp-neon-3-win32-x86_64.zip。注意java版本,是java8。(eclipse-cpp-kepler-SR2-win32-x86_64.zip则是java7)。
然后是安装CDT,这个浏览器下载到本地比较好。好像是可以选下载镜像,选国内的,我选的东软。
然后是eclipse arm plugin插件,这个我也是浏览器下载到本地。注意加载的时候要断网(否则eclipse软件直接搜最新版本,那么下载速度奇慢无比)。安装的时候连上网,不联网安装就提示什么 item无法收集之类的话。



原创粉丝点击