diff --git a/HISTORY.rst b/HISTORY.rst index c3c71992..4e99a91c 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -7,6 +7,9 @@ PlatformIO 2.0 2.7.1 (2016-01-??) ~~~~~~~~~~~~~~~~~~ +* Added generic targets to Eclipse IDE: Build, Clean, Upload, Upload SPIFFS + image, Upload using Programmer + (`issue #427 `_) * Fixed uploading of EEPROM data using ``uploadeep`` target for Atmel AVR development platform * Fixed project generator for CLion IDE diff --git a/docs/_static/ide-platformio-eclipse.png b/docs/_static/ide-platformio-eclipse.png index 22f4246a..604ddb3d 100644 Binary files a/docs/_static/ide-platformio-eclipse.png and b/docs/_static/ide-platformio-eclipse.png differ diff --git a/docs/ide/eclipse.rst b/docs/ide/eclipse.rst index e7a9b95c..3bf82aa1 100644 --- a/docs/ide/eclipse.rst +++ b/docs/ide/eclipse.rst @@ -53,7 +53,14 @@ Then: ``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``. +3. Build project using ``Menu: Project > Build Project`` or preconfigured + Make Targets (see screenshot below): + + + ``PlatformIO: Build`` + + ``PlatformIO: Clean`` + + ``PlatformIO: Upload`` + + ``PlatformIO: Upload using Programmer`` see :ref:`atmelavr_upload_via_programmer` + + ``PlatformIO: Upload SPIFFS image`` see :ref:`platform_espressif_uploadfs` .. warning:: The libraries which are added, installed or used in the project @@ -72,6 +79,8 @@ See a full list with :ref:`articles`. Screenshot ---------- +Cross-platform `Blink Project `_. + .. image:: ../_static/ide-platformio-eclipse.png :target: http://www.ikravets.com/computer-life/programming/2014/06/20/building-and-debugging-atmel-avr-arduino-based-project-using-eclipse-ideplatformio diff --git a/examples/ide/eclipse/.cproject b/examples/ide/eclipse/.cproject index a8e197bf..bf040f4c 100644 --- a/examples/ide/eclipse/.cproject +++ b/examples/ide/eclipse/.cproject @@ -19,23 +19,19 @@ - + @@ -44,17 +40,13 @@ @@ -63,17 +55,13 @@ @@ -101,4 +89,48 @@ + + + + platformio + -f -c eclipse + run -t program + true + true + false + + + platformio + -f -c eclipse + run -t uploadfs + true + true + false + + + platformio + -f -c eclipse + run + true + true + false + + + platformio + -f -c eclipse + run -t upload + true + true + false + + + platformio + -f -c eclipse + run -t clean + true + true + false + + + diff --git a/platformio/ide/tpls/eclipse/.cproject.tpl b/platformio/ide/tpls/eclipse/.cproject.tpl index 28d12111..cf2fc211 100644 --- a/platformio/ide/tpls/eclipse/.cproject.tpl +++ b/platformio/ide/tpls/eclipse/.cproject.tpl @@ -19,7 +19,7 @@ - + + + + + platformio + -f -c eclipse + run -t program + true + true + false + + + platformio + -f -c eclipse + run -t uploadfs + true + true + false + + + platformio + -f -c eclipse + run + true + true + false + + + platformio + -f -c eclipse + run -t upload + true + true + false + + + platformio + -f -c eclipse + run -t clean + true + true + false + + +