2015-11-18 17:33:46 +02:00
|
|
|
.. Copyright 2014-2015 Ivan Kravets <me@ikravets.com>
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
|
2015-03-25 13:22:39 +02:00
|
|
|
.. _ide_eclipse:
|
|
|
|
|
|
|
|
Eclipse
|
|
|
|
=======
|
|
|
|
|
|
|
|
The `Eclipse CDT (C/C++ Development Tooling) <https://eclipse.org/cdt/>`_
|
|
|
|
Project provides a fully functional C and C++ Integrated Development
|
|
|
|
Environment based on the Eclipse platform. Features include: support for
|
|
|
|
project creation and managed build for various toolchains, standard make
|
|
|
|
build, source navigation, various source knowledge tools, such as type
|
|
|
|
hierarchy, call graph, include browser, macro definition browser, code editor
|
|
|
|
with syntax highlighting, folding and hyperlink navigation, source code
|
|
|
|
refactoring and code generation, visual debugging tools, including memory,
|
|
|
|
registers, and disassembly viewers.
|
|
|
|
|
|
|
|
This software can be used with:
|
|
|
|
|
2015-05-22 21:05:38 +03:00
|
|
|
* all available :ref:`platforms`
|
|
|
|
* all available :ref:`frameworks`
|
2015-03-25 13:22:39 +02:00
|
|
|
|
|
|
|
Refer to the `CDT Documentation <https://eclipse.org/cdt/documentation.php>`_
|
|
|
|
page for more detailed information.
|
|
|
|
|
2015-05-22 21:05:38 +03:00
|
|
|
.. contents::
|
|
|
|
|
2015-03-25 13:22:39 +02:00
|
|
|
Integration
|
|
|
|
-----------
|
|
|
|
|
2015-05-22 21:05:38 +03:00
|
|
|
Project Generator
|
|
|
|
^^^^^^^^^^^^^^^^^
|
|
|
|
|
2015-06-29 19:40:15 +03:00
|
|
|
Since PlatformIO 2.0 you can generate Eclipse compatible project using
|
2015-05-26 22:55:59 +03:00
|
|
|
:option:`platformio init --ide` command. Please choose board type using
|
|
|
|
:ref:`cmd_boards` command and run:
|
2015-05-22 21:05:38 +03:00
|
|
|
|
|
|
|
.. code-block:: shell
|
|
|
|
|
2015-05-26 22:55:59 +03:00
|
|
|
platformio init --ide eclipse --board %TYPE%
|
2015-05-22 21:05:38 +03:00
|
|
|
|
2015-09-05 20:50:30 +03:00
|
|
|
Then:
|
|
|
|
|
|
|
|
1. Import this project via
|
|
|
|
``Menu: File > Import... > General > Existing Projects into Workspace > Next``
|
|
|
|
and specify root directory where is located :ref:`projectconf`
|
|
|
|
2. Open source file from ``src`` directory (``*.c, *.cpp, *.ino, etc.``)
|
|
|
|
3. Build project: ``Menu: Project > Build Project``.
|
|
|
|
|
2015-05-22 21:05:38 +03:00
|
|
|
|
|
|
|
Manual Integration
|
|
|
|
^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2015-08-28 23:50:46 +03:00
|
|
|
* `Building and debugging Atmel AVR (Arduino-based) project using Eclipse IDE+PlatformIO <http://www.ikravets.com/computer-life/programming/2014/06/20/building-and-debugging-atmel-avr-arduino-based-project-using-eclipse-ideplatformio>`_
|
|
|
|
* `Improvised MBED FRDM-K64F Eclipse/PlatformIO Setup and Software Installation <http://thomasweldon.com/tpw/courses/embeddsp/p00pcFrdmK64_eclipsePlatformioSetup.html>`_
|
2015-03-25 13:22:39 +02:00
|
|
|
|
|
|
|
Screenshot
|
|
|
|
----------
|
|
|
|
|
|
|
|
.. image:: ../_static/ide-platformio-eclipse.png
|
2015-06-29 19:40:15 +03:00
|
|
|
:target: http://www.ikravets.com/computer-life/programming/2014/06/20/building-and-debugging-atmel-avr-arduino-based-project-using-eclipse-ideplatformio
|
2015-09-04 23:48:57 +03:00
|
|
|
|
|
|
|
Examples
|
|
|
|
--------
|
|
|
|
|
|
|
|
"Blink" Project
|
|
|
|
^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Source code of `Eclipse "Blink" Project <https://github.com/platformio/platformio/tree/develop/examples/ide/eclipse>`_.
|