Forum Rule: Always post complete source code & details to reproduce any issue!
Page 1 of 3 1 2 3 LastLast
Results 1 to 25 of 61

Thread: Anyone using Eclipse for development?

  1. #1
    Senior Member
    Join Date
    Oct 2012
    Location
    Portland OR
    Posts
    593

    Anyone using Eclipse for development?

    This is not really specific to Teensy, but maybe someone here can help...
    I've been using the basic Arduino environment with Arduinos, and now with Teensy. I've heard about Eclipse, so I decided to try it out, using this tutorial:
    http://horrorcoding.altervista.org/a...e-basic-setup/

    I set up the paths as suggested for a basic Arduino (ATmega328P at 16 MHz) using the "stock arduino" side of Paul's Arduino 1.0.2 / Teensy 3 Beta 8 distribution. So I was setting up a lot of paths in Eclipse like
    C:\Program Files\arduino102b8\hardware\tools\avr\bin
    C:\Program Files\arduino102b8\hardware\tools\avr\utils\bin
    C:\Program Files\arduino102b8\hardware\tools\avr\avr\include
    C:\Program Files\arduino102b8\hardware\arduino\variants\stand ard
    ...and importing all the files (except for main.ccp) in
    C:\Program Files\arduino102b8\hardware\arduino\cores\arduino

    The above tutorial then says to build the basic "ArduinoCore" library, which in my case fails with many errors like IPAddress.cpp : '_address' was not declared in this scope

    I realize this is tangential to Teensy development. I was just wondering if anyone here knows of a working tutorial for setting up Eclipse for Arduino, or if I should have expected the one I was using to work? I suppose the logical first step would be to restart with a fresh, stock, non-Teensy Arduino 1.0.2 tree and go from there.

  2. #2
    Have you had a look and the Arduino plug-in for Eclipse?

    Learn more at http://www.baeyens.it/eclipse/.

  3. #3
    Senior Member
    Join Date
    Oct 2012
    Location
    Portland OR
    Posts
    593
    Thank you, yes that one does work! Much easier to configure, as I only had to type in one directory, instead of about six.

  4. #4
    Quote Originally Posted by Avenue33 View Post
    Have you had a look and the Arduino plug-in for Eclipse?

    Learn more at http://www.baeyens.it/eclipse/.
    Hi
    I have been working on Teensy support some time ago. But due to changes like Teensy3 and Arduino 2.5 IDE I decided to wait a while till things cooled down to decide on which direction to take.
    Paul informed me that teensy3 is still Arduino 1.X compatible. As usual great work from Paul. So I'll look into the changes for Teensy3 he reported to me in the coming weeks.
    There is a download place where you can download an alfa version tested by 3 people which has support for Teensy2. It needs some extra setup which is not (good) documented.
    If there is interest for this version reply to this post and I'll give post the location and instructions on getting it to work with Teensy2.
    Best regards
    Jantje

  5. #5
    Junior Member
    Join Date
    Dec 2012
    Posts
    3
    Hello,
    For those who do not want to wait the arrival of Santa Claus, here's how to use Eclipse with the Teensy 3.0 Board.
    There may be things to fix, but it works.
    If you have any problems with this procedure, please let me know.

    Sorry for my bad english ... I'm French!

    Thanks.
    Teensy 3.0 and Eclipse installation on Windows

    #1. You must first download the following elements:
    - Arduino IDE for Teensy 3.0 Beta 8 provided by Paul : http://forum.pjrc.com/threads/430-Te...-quot-Software
    - Elicpe IDE for C/C++ Developers Juno SR1 : http://www.eclipse.org/downloads/pac...lopers/junosr1
    - GNU ARM Eclipse Plug-in : http://sourceforge.net/projects/gnua...eleases/0.5.4/

    #2. Installation:
    - Unzip Arduino IDE for Teensy, for example : “C:\Teensy3\arduino-1.0.2”
    - Unzip Eclipse IDE for C/C++, for example : “C:\Teensy3\eclipse”
    - Add Teensy tool chain path in the Windows Path : “C:\Teensy3\arduino-1.0.2\hardware\tools\arm-none-eabi\bin”

    #3. Configuration:
    - Start Eclipse and install the GNU ARM Eclipse Plug-in, click on menu “Help/Install New Software…”
    - In the dialog box “Install”, click on “Add” button.
    - In the other dialog box, click on “Archive…” button.
    - In the this dialog box, select the downloaded plug-in file : “org.eclipse.cdt.cross.arm.gnu_0.5.4.201202210114. zip”

    #4. Create the TeensyCore3 library Project:
    - In Eclipse, create a project, click on menu “File/New/C++ Project”.
    - In the dialog box “C++ Project”, type the Project Name : “TeensyCore3”
    - Disable, “Use default location” checkbox.
    - Click on the “Browse” button and select the location of your project.
    - In the “Project type” area, select “ARM Cross Target Static Library/Empty Project”.
    - In the “Toolchains” area, select “ARM Windows GCC (Yagarto)”.
    - Click on the “Next” button.
    - On the Configuration area disable the “Debug” checkbox.
    - Click on the “Finish” button.
    - Check the project, click on the project with right mouse button, in the popup window, click on the “Properties” item.
    - In the tree area in the left of dialog box, select “C/C++ General/Paths and Symbols”
    - Verify in the “Includes” tab than “Include directories” are filled with the path based added in the Windows Path (in step #2) on the Assembly, GNU C, GNU C++ languages. If the path is not correctly set, you must verify that the path has been correctly set.
    - Click on the “Cancel” button to close the dialog box.
    - Create a “src” folder in project, click on the project with right mouse button, click on “New/Folder” item of popup menu. Type “src” in “Folder name” field and click on the “Finish” button.
    - With Windows Explorer select all files in the “C:\Teensy3\arduino-1.0.2\hardware\teensy\cores\teensy3 \” folder and copy to the “src” folder of the “TeensyCore3” project.
    - In the “src” folder remove “Makefile”, “main.cpp”, “mk20dx128.c” files.
    - In Eclipse, click on the project with right mouse button, click on the “Refresh” item.
    - The “src” folder appears with its files and the sub folder “avr”…

    #5. TeensyCore3 library project Settings:
    - In Eclipse, click on the project with right mouse button, click on the “Properties” item.
    - Select “C/C++ Build/Settings” in the tree area on the left.
    - In the “Tool Settings” tab, verify than “Target Processor” property the Processor selected is “cortex-m4” and the “Thumb” checkbox are enabled.
    - Select “ARM Yagarto Windows GCC C Compiler/Preprocessor”, in the “Defined symbols” area, add the following items : F_CPU=48000000, USB_SERIAL, LAYOUT_US_ENGLISH
    - Select “ARM Yagarto Windows GCC C Compiler/Directories”, in the “Include paths” area, add “src” folder using the “Workspace…” button.
    - Same setting for “ARM Yagarto Windows GCC C++ Compiler/Preprocessor” and “ARM Yagarto Windows GCC C Compiler/Directories”, and click on “OK” button.
    - To build the TeensyCore3 library, click on the project with right mouse button, click on the “Build Project” item. In the “Release” folder, the “libTeensyCore3.a” file has been generated.

    #6. Create your Teensy project:
    - In Eclipse, create a project, click on menu File/New/C++ Project.
    - In the dialog box “C++ Project”, type the Project Name : “MyProject”
    - In the “Project type” area, select “ARM Cross Target Application/Empty Project”.
    - In the “Toolchains” area, select “ARM Windows GCC (Yagarto)”.
    - Click on the “Next” button.
    - On the Configuration area disable the “Debug” checkbox.
    - Click on the “Finish” button.
    - Create a “src” folder in project, click on the project with right mouse button, click on “New/Folder” item of popup menu. Type “src” in “Folder name” field and click on the “Finish” button.
    - With Windows Explorer select “min.cpp”, “mk20dx128.c” and “mk20dx128.ld” files in the “C:\Teensy3\arduino-1.0.2\hardware\teensy\cores\teensy3 \” folder and copy to the “src” folder of the “MyProject” project.
    - In Eclipse, click on the project with right mouse button, click on the “Refresh” item.
    - The “src” folder appears with its files.

    #7. MyProject project Settings:
    - In Eclipse, click on the project with right mouse button, click on the “Properties” item.
    - Select “C/C++ Build/Settings” in the tree area on the left.
    - In the “Tool Settings” tab, verify than “Target Processor” property the Processor selected is “cortex-m4” and the “Thumb” checkbox are enabled.
    - Select “ARM Yagarto Windows GCC C Compiler/Preprocessor”, in the “Defined symbols” area, add the following items : F_CPU=48000000, USB_SERIAL, LAYOUT_US_ENGLISH
    - Select “ARM Yagarto Windows GCC C Compiler/Directories”, in the “Include paths” area, add “src” folder of “TeensyCore3” using the “Workspace…” button.
    - Same setting for “ARM Yagarto Windows GCC C++ Compiler/Preprocessor” and “ARM Yagarto Windows GCC C Compiler/Directories”, and click on “OK” button.
    - Select “ARM Yagarto Windows GCC C++ Linker/General”, in the “Script file” field, click on the “Browse…” and select “mk20dx128.ld” file in the “src” folder of MyProject.
    - Select “ARM Yagarto Windows GCC C++ Linker/Library”, in the “Libraries” area, add “TeensyCore3” and in “Library search path” area, add the path where the TeensyCore3 library is located, use the “Workspace…” button and select the “Release” folder of TeensyCore3 library project.
    - Select “Project References”, in the “Project references for ‘MyProject’” enable the “TeensyCore3” checkbox.
    - Temporary, to avoid a crash, Select “ARM Yagarto Windows GCC Create Listing”, in the “Command” field, type “echo” to replace the default command, and click on “OK” button.
    - To build your project, click on the project with right mouse button, click on the “Build Project” item. In the “Release” folder, the “MyProject.hex” file has been generated.

    #8. Teensy program loader settings:
    - In Eclipse, on the menu “Run/External Tools/External Tools Configurations…”
    - In the dialog box select on the “Program” item in the tree area, and click on the “New launch configuration” icon.
    - In the “Name” field, type “Teensy 3.0”.
    - In the “Main” tab, in the “Location” field, type the path : “C:/Teensy3/arduino-1.0.2/hardware/tools/teensy_post_compile.exe”.
    - In the “Working Directory” field, type the path : “C:\ Teensy3\arduino-1.0.2\hardware\tools”
    - In the “Arguments” field, type : “-file=${project_name} -path=${project_loc}\Release -tools=C:/Teensy3/arduino-1.0.2/hardware/tools”
    - In the “Common” tab, enable the checkbox “External Tools”, and click on the “Apply” button.

    #9. Upload program to the Teensy board:
    - In Eclipse, select your project, “MyProject”.
    - Click on the button “Run Teensy 3.0” of the tools bar to start loader provided by Paul. For example : http://docs.joomla.org/images/0/0f/S...3_20090122.png
    - Push the reset button of the board to upload your program.

    Good luck !

    Nassa.
    Last edited by Nassarane; 12-09-2012 at 12:21 PM.

  6. #6
    Junior Member
    Join Date
    Dec 2012
    Posts
    3
    Hello,

    Here is a new version of the installation manual for the Eclipse Board Teensy 3.0.
    I added the installation of the Serial Terminal.

    Teensy 3.0 and Eclipse installation on Windows

    Introduction
    This manual is written for Arduino IDE for Teensy beta 8 and beta 9 provided by Paul.
    This manual will allow you install an Eclipse environment to edit and compile your programs but also to communicate with your Teensy Board with USB (serial) and a terminal.
    This is not a definitive solution, but works very well.

    #1. You must first download the following elements:
    - Arduino IDE for Teensy 3.0 Beta 8 provided by Paul : http://forum.pjrc.com/threads/430-Te...-quot-Software
    - Elicpe IDE for C/C++ Developers Juno SR1 32 bits : http://www.eclipse.org/downloads/pac...lopers/junosr1
    - GNU ARM Eclipse Plug-in : http://sourceforge.net/projects/gnua...eleases/0.5.4/
    - TM-terminal 3.4.1 : http://www.eclipse.org/downloads/dow...inal-3.4.1.zip

    #2. Installation:
    - Unzip Arduino IDE for Teensy, for example : “C:\Teensy3\arduino-1.0.2”.
    - Unzip Eclipse IDE for C/C++, for example : “C:\Teensy3\eclipse”.
    - Add Teensy tool chain path in the Windows Path : “C:\Teensy3\arduino-1.0.2\hardware\tools\arm-none-eabi\bin”.

    #3. Configuration:
    - Start Eclipse and install the GNU ARM Eclipse Plug-in, click on menu “Help/Install New Software…”
    - In the dialog box “Install”, click on “Add” button.
    - In the “Add Repository” dialog box, click on “Archive…” button.
    - In the this dialog box, select the downloaded plug-in file : “org.eclipse.cdt.cross.arm.gnu_0.5.4.201202210114. zip”
    - In the dialog box “Install”, click on “Add” button.
    - In the “Add Repository” dialog box, type “RXTX” in the “Name” field and type http://rxtx.qbang.org/eclipse/ in the “Location” field and click on the “Ok” button.
    - With Windows Explorer, create a new folder “TM” in the “C:\Teensy3\eclipse\dropins” folder.
    - Copy “TM-trminal-3.4.1.zip” file in the “TM” folder, and unzip this file in this folder. Restart Eclipse.

    #4. Create the TeensyCore3 library Project:
    - In Eclipse, create a project, click on menu “File/New/C++ Project”.
    - In the dialog box “C++ Project”, type the Project Name : “TeensyCore3”
    - Disable, “Use default location” checkbox.
    - Click on the “Browse” button and select the location of your project.
    - In the “Project type” area, select “ARM Cross Target Static Library/Empty Project”.
    - In the “Toolchains” area, select “ARM Windows GCC (Yagarto)”.
    - Click on the “Next” button.
    - On the Configuration area disable the “Debug” checkbox.
    - Click on the “Finish” button.
    - Check the project, click on the project with right mouse button, in the popup window, click on the “Properties” item.
    - In the tree area in the left of dialog box, select “C/C++ General/Paths and Symbols”
    - Verify in the “Includes” tab than “Include directories” are filled with the path based added in the Windows Path (in step #2) on the Assembly, GNU C, GNU C++ languages. If the path is not correctly set, you must verify that the path has been correctly set.
    - Click on the “Cancel” button to close the dialog box.
    - Create a “src” folder in project, click on the project with right mouse button, click on “New/Folder” item of popup menu. Type “src” in “Folder name” field and click on the “Finish” button.
    - With Windows Explorer select all files in the “C:\Teensy3\arduino-1.0.2\hardware\teensy\cores\teensy3 \” folder and copy to the “src” folder of the “TeensyCore3” project.
    - In the “src” folder remove “Makefile”, “main.cpp”, “mk20dx128.c” files.
    - In Eclipse, click on the project with right mouse button, click on the “Refresh” item.
    - The “src” folder appears with its files and the sub folder “avr”…

    #5. TeensyCore3 library project Settings:
    - In Eclipse, click on the project with right mouse button, click on the “Properties” item.
    - Select “C/C++ Build/Settings” in the tree area on the left.
    - In the “Tool Settings” tab, verify than “Target Processor” property the Processor selected is “cortex-m4” and the “Thumb” checkbox are enabled.
    - Select “ARM Yagarto Windows GCC C Compiler/Preprocessor”, in the “Defined symbols” area, add the following items : F_CPU=48000000, USB_SERIAL, LAYOUT_US_ENGLISH
    - Select “ARM Yagarto Windows GCC C Compiler/Directories”, in the “Include paths” area, add “src” folder using the “Workspace…” button.
    - Same setting for “ARM Yagarto Windows GCC C++ Compiler/Preprocessor” and “ARM Yagarto Windows GCC C Compiler/Directories”, and click on “OK” button.
    - To build the TeensyCore3 library, click on the project with right mouse button, click on the “Build Project” item. In the “Release” folder, the “libTeensyCore3.a” file has been generated.

    #6. Create your Teensy project:
    - In Eclipse, create a project, click on menu File/New/C++ Project.
    - In the dialog box “C++ Project”, type the Project Name : “MyProject”.
    - In the “Project type” area, select “ARM Cross Target Application/Empty Project”.
    - In the “Toolchains” area, select “ARM Windows GCC (Yagarto)”.
    - Click on the “Next” button.
    - On the Configuration area disable the “Debug” checkbox.
    - Click on the “Finish” button.
    - Create a “src” folder in project, click on the project with right mouse button, click on “New/Folder” item of popup menu. Type “src” in “Folder name” field and click on the “Finish” button.
    - With Windows Explorer select “main.cpp”, “mk20dx128.c” and “mk20dx128.ld” files in the “C:\Teensy3\arduino-1.0.2\hardware\teensy\cores\teensy3 \” folder and copy to the “src” folder of the “MyProject” project.
    - In Eclipse, click on the project with right mouse button, click on the “Refresh” item.
    - The “src” folder appears with its files.

    #7. MyProject project Settings:
    - In Eclipse, click on the project with right mouse button, click on the “Properties” item.
    - Select “C/C++ Build/Settings” in the tree area on the left.
    - In the “Tool Settings” tab, verify than “Target Processor” property the Processor selected is “cortex-m4” and the “Thumb” checkbox are enabled.
    - Select “ARM Yagarto Windows GCC C Compiler/Preprocessor”, in the “Defined symbols” area, adds the following items: F_CPU=48000000, USB_SERIAL, LAYOUT_US_ENGLISH.
    - Select “ARM Yagarto Windows GCC C Compiler/Directories”, in the “Include paths” area, add “src” folder of “TeensyCore3” using the “Workspace…” button.
    - Same setting for “ARM Yagarto Windows GCC C++ Compiler/Preprocessor” and “ARM Yagarto Windows GCC C Compiler/Directories”, and click on “OK” button.
    - Select “ARM Yagarto Windows GCC C++ Linker/General”, in the “Script file” field, clicks on the “Browse…” and select “mk20dx128.ld” file in the “src” folder of MyProject.
    - Select “ARM Yagarto Windows GCC C++ Linker/Library”, in the “Libraries” area, adds “TeensyCore3” and in “Library search path” area, adds the path where the TeensyCore3 library is located, use the “Workspace…” button and select the “Release” folder of TeensyCore3 library project.
    - Select “Project References”, in the “Project references for ‘MyProject’” enable the “TeensyCore3” checkbox.
    - Temporary, to avoid a crash, Select “ARM Yagarto Windows GCC Create Listing”, in the “Command” field, type “echo” to replace the default command, and click on “OK” button.
    - To build your project, click on the project with right mouse button, click on the “Build Project” item. In the “Release” folder, the “MyProject.hex” file has been generated.

    #8. Teensy program loader settings:
    - In Eclipse, on the menu “Run/External Tools/External Tools Configurations…”
    - In the dialog box select on the “Program” item in the tree area, and click on the “New launch configuration” icon.
    - In the “Name” field, type “Teensy 3.0”.
    - In the “Main” tab, in the “Location” field, type the path : “C:/Teensy3/arduino-1.0.2/hardware/tools/teensy_post_compile.exe”.
    - In the “Working Directory” field, type the path : “C:\ Teensy3\arduino-1.0.2\hardware\tools”
    - In the “Arguments” field, type : “-file=${project_name} -path=${project_loc}\Release -tools=C:/Teensy3/arduino-1.0.2/hardware/tools”
    - In the “Common” tab, enable the checkbox “External Tools”, and click on the “Apply” button.

    #9. Upload program to the Teensy board:
    - In Eclipse, select your project, “MyProject”.
    - Click on the button “Run Teensy 3.0” of the tools bar to start loader provided by Paul. For example : http://ekawas.blogspot.fr/2009/04/go...e-eclipse.html
    - Push the reset button of the board to upload your program.

    #10. Connect the terminal to the Teensy board:
    - To test the terminal, copy/paste the “Hello Word” example program in the “C:\ARM\arduino-1.0.2\examples\Teensy\Tutorial3\HelloSerialMonitor \HelloSerialMonitor.pde” file :

    Code:
    #include "WProgram.h"
    
    #ifdef USB_SERIAL
    usb_serial_class Serial;
    #endif
    
    int main(void) {
    
    	Serial.begin(38400);
    	pinMode(13, OUTPUT);
    
    	for (;;) {
    		digitalWrite(13, HIGH);
    		Serial.println("Hello World");
    		delay(50);
    		digitalWrite(13, LOW);
    		delay(950);
    	}
    }
    - Compile and upload this program.
    - To open the terminal view, click on the menu “Window/Show View/Other…”.
    - In the “Show View” dialog box, in the tree area, select “Terminal/Terminal” and click on the “OK” button.
    - In the Terminal view, click on the “Settings” icon to open the “Terminal Settings” dialog box.
    - Type “Teensy 3.0” on the “View Title”, select “Serial” “Connection Type” select box, select the “Port”, select the “Baud Rate” to 38400 and click on the “OK” button.
    - Click on the “Connect” button, the “Hello Word” message appears every second.



    Good Luck !

    Nassa.
    Last edited by Nassarane; 12-16-2012 at 06:34 PM.

  7. #7
    Junior Member
    Join Date
    Dec 2012
    Posts
    3
    Hi,

    I make an improvement on a tool chain path configuration described on the #2 Step.

    If like me, you use different board with different toolchain (AVR, Teensy 3.0, Arduino Due...), you will need to modify the PATH environment variable in Windows depending on the board you are using. It is heavy!
    In Eclipse, it is possible to configure environment variable to a workspace and therefore no need to change the Winwdows PATH environment variable :

    - Set the tool chain path, click in “Windows/Preferences”.
    - In the tree area in the left of “Preferences” dialog box, select “C C++/Build/Environment”.
    - On “Preferences/Environment” clicks on the “select…” button.
    - In the “Select variables” dialog box, enable checkbox of “Path” item, and click on the “OK” button.
    - Back on the “Preferences/Environment” select the “Path” item added, and click on the “Edit…” button.
    - In the “Edit variables” dialog box, add the tool chain path “C:\Teensy3\arduino-1.0.2\hardware\tools\arm-none-eabi\bin” without remove the current path values, and click on the “OK” button.
    - In the “Preferences/Environment” click on the “OK” button.

    Good luck

    Nassa.

  8. #8
    Hi Nassa, i was wondering, if you would be willing to write a similar tutorial for compiling outside the arduino IDE, but in Notepad++
    I find Eclipse rather confusing, "overkill" for my needs, but i would really like to compile / upload directly from Notepad++

  9. #9
    Senior Member
    Join Date
    Jan 2013
    Location
    San Francisco Bay Area
    Posts
    641
    Thanks Nassa. Just got my Teensy 3.0 and was hoping to find a tut to get it working with Eclipse.

  10. #10
    Junior Member
    Join Date
    Jan 2013
    Location
    Spain
    Posts
    4
    Thanks so much, I was looking exactly for that. This is my first entry for a long time in a forum and I think is going to be a nice way with you all.

    Note for Paul: I was amazed by the size of this little wonder

  11. #11
    Junior Member
    Join Date
    Jan 2013
    Location
    Spain
    Posts
    4
    Hi Nassarane,

    I'm taking your guide, that is very helpful, to start stepping into the teensy word but I find a problem. I'm sure that it's only something that I passed over.

    When I get into the 5th step, in the moment of building I get the an error message that says: 'Program "make" not found in PATH'

    Well, I get this in the console:

    Code:
    20:06:27 **** Incremental Build of configuration Release for project TeensyCore3 ****
    make all 
    Cannot run program "make": Launching failed
    
    Error: Program "make" not found in PATH
    PATH=[C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\MATLAB\R2008a\bin;C:\Program Files\MATLAB\R2008a\bin\win64;C:\Program Files (x86)\SMLNJ\bin\;D:\Teensy3\arduino-1.0.3-teensy3-beta10-windows\arduino-1.0.3\hardware\tools\arm-none-eabi\bin;C:\Program Files (x86)\Java\jre7\bin]
    
    20:06:28 Build Finished (took 298ms)
    I know that this is a newbie question, but... Is the step where I am

  12. #12
    Junior Member
    Join Date
    Jan 2013
    Location
    Spain
    Posts
    4
    Nice, I just realice what the problem is. The only thing that fail is my own eclipse. I'll explain myself. Literaly, the error said that there is no make in the locations the PATH point to and that is true.

    In software development, Make is a utility that automatically builds executable programs and libraries from source code by reading files called makefiles which specify how to derive the target program.
    http://en.wikipedia.org/wiki/Make_(software)

    So basically for solving that while I was taking a look in propieties/C/C++ Build: I elect Internal Builder.

    After that I'm ready to jump to the step 6.


  13. #13
    Junior Member
    Join Date
    Jan 2013
    Location
    Spain
    Posts
    4

    Exclamation

    Hi again guys,

    This is my last problem tonight:

    After creating a new project and linked everything at the time of build Ecplipse gives me those problems which I'm surprised about:

    Code:
    Description	Resource	Path	Location	Type
    The type 'HardwareSerial' must implement the inherited pure virtual method 'Print::write' 	HardwareSerial.h	/TeensyCore3/src	line 68	Code Analysis Problem
    The type 'HardwareSerial3' must implement the inherited pure virtual method 'Print::write' 	HardwareSerial.h	/TeensyCore3/src	line 98	Code Analysis Problem
    The type 'HardwareSerial2' must implement the inherited pure virtual method 'Print::write' 	HardwareSerial.h	/TeensyCore3/src	line 83	Code Analysis Problem
    Any Idea? I don't understand what's going on here :/

    I know that I can just start working with arduino's interface, but I'm triying to get out of this. I want to use the cortex-m4 for signal processing for some little applications.

  14. #14
    I just worked through Nassa's guide and it works for me.
    A couple of changes to share though because I'm running on Ubuntu I used ARM Sourcery rather than Yagarto.
    Also I'm still using Indigo so the terminal didn't install. But that's easily worked around using putty from a term window.
    (I'll take a look at Juno tomorrow).
    Anyway, well done Nassa
    (and well done Paul, of course).

  15. #15
    I'm looking for alfa testers for the V2.1 version of the arduino eclipse plugin. This version supports Teensy 3 (with some aditional configuration - read download and unzip)
    Read more at http://blog.baeyens.it/#post5
    Best regards
    Jantje

  16. #16
    Senior Member
    Join Date
    Jan 2013
    Location
    San Francisco Bay Area
    Posts
    641
    I'm interested. I emailed you.

  17. #17
    Senior Member
    Join Date
    Jan 2013
    Posts
    966
    Last year at the beginning of May I had already been working with the Teensy++2 for a while but got frustrated with the Arduino IDE. I searched the Arduino Forum for alternatives to the Arduino IDE and found the Arduino Eclipse plugin.
    Installation on my iMac was easy and in no time I had an Arduino UNO running. Sweet!
    Of course there was no menu item for a Teensy++2 in the project setup, so I wrote an email to Jantje and to Paul and asked if they could imagine making this work for the Teensy++2 and off they went at high speed. After some relatively easy to following configuration steps I was programming a Teensy++2 two weeks later.

    Then the Teensy3 arrived and Arduino 1.5.x entered the scene and things got a little more complicated. However, Paul and Jantje did not stop and continued to work through difficult and frustrating issues. However, with relatively minor copying of some files and a little paths renaming I can now also program a Teensy3 through the Arduino Eclipse plugin.

    A big kudos from me to Jantje and Paul for making this work!

  18. #18
    Senior Member
    Join Date
    Jun 2013
    Location
    So. Calif
    Posts
    2,828
    based on Headroom's success for Teensy3, are there instructions for setup of Eclipse (or emIDE or code::blocks) or even Programmer's Notepad, for Teensy3?

  19. #19
    Senior Member
    Join Date
    Jan 2013
    Posts
    966
    If you want to be a alfa tester for the new 2.1 version of the Arduino Eclipse plugin, you can write Jantje an email.

    I got it to work with the 2.0 version but did not write down every step. I will have to try a fresh Eclipse and Arduino Installation with the new 2.1 alfa of the Arduino Eclipse plugin and write down within the next week and will post it here.

  20. #20
    Senior Member
    Join Date
    Jun 2013
    Location
    So. Calif
    Posts
    2,828
    thanks... I'll be watching for how-to's.
    And I emailed re beta testing 2.1.
    Last edited by stevech; 06-16-2013 at 06:41 PM.

  21. #21
    Santa claus is early this year ;-)
    I released V 2.1.0.4 of my arduino eclipse plugin. It has Teensy3 support.
    Generic installation instructions can be found at http://eclipse.baeyens.it/Install.html
    For this version you need Eclipse Juno; Arduino IDE 1.5.2 beta and Arduino eclipse plugin 2.1.0.4 you can install in eclipse with the url http://www.baeyens.it/eclipse/V2
    For teensy to work download and unzip following file in hardware folder of the Arduino IDE 1.5.2 (make sure the files are allowed to execute) http://baeyens.it/eclipse/download/teensy%201.15%20mac%201.14.zip
    Best regards
    Jantje

  22. #22
    Junior Member
    Join Date
    May 2013
    Posts
    5
    For those looking to get Nassarane's instructions working on a Windows7 64-bit environment. This is what worked for me (note I used F_CPU=96000000 to overclock):

    I have been looking for an alternative environment and I seem to have this Eclipse-based method working:
    Based on this post - http://forum.pjrc.com/threads/1474-A...ull=1#post6203
    Modified for the specific build that worked for me (on Windows7 - 64-bit)
    using Teensyduino & Loader v1.15 and Arduino IDE v1.0.5

    Teensy 3.0 and Eclipse installation on Windows

    #1. You must first download the following elements:
    - Arduino IDE - http://www.arduino.cc/en/Main/Software
    - Teensyduino - http://www.pjrc.com/teensy/td_download.html
    - Eclipse Standard, (use 32-bit version !!! as RXTX is not available for 64-bit platform) - http://www.eclipse.org/downloads/
    - Cygwin (use 32-bit version !!! for compatability with eclipse) - http://cygwin.com/setup-x86.exe
    - Java 7 JRE (x86) - http://www.oracle.com/technetwork/ja...s-1880261.html

    #2. Installation:
    - Install Java 7 JRE
    - Install Cygwin
    - Install the Arduino IDE, changing the target location to "C:\Arduino".
    If using an archive rather than the installer then unzip to "C:\" and change uncompressed folder to be "C:\Arduino"
    - Install Teensyduino
    - Unzip Eclipse IDE to “C:\”
    Create a desktop shortcut named "Eclipse" pointed to "C:\eclipse\eclipse.exe"
    - Start Eclipse
    - Help->Install New Software->Add:
    Name: GNU ARM
    Location: http://gnuarmeclipse.sourceforge.net/updates
    Press OK
    Select "CDT GNU Cross Development Tools"
    Press Next and complete the install
    - Help->Install New Software->Add:
    Name: RXTX
    Location: RXTX - http://rxtx.qbang.org/eclipse/
    Press OK
    Select "RXTX 2.1-7r4"
    Press Next and complete the install
    - Help->Install New Software->Add:
    Name: TM Terminal
    Location: http://download.eclipse.org/tm/updates/3.5/
    Press OK
    Expand "TM and RSE 3.5 Main Features" and select "Target Management Terminal"
    Press Next and complete the install
    - (Optional) Help->Eclipse Marketplace
    Find: Subclipse
    Click Install on the entry named exactly: Subclipse
    Confirm and complete the install
    (If unable to install, temporarily disable Anti-Virus and retry the install)

    #3. Eclipse Configuration:
    - Set the tool chain path, click in “Windows/Preferences”.
    - In the tree area in the left of “Preferences” dialog box, select “C C++/Build/Environment”.
    - On “Preferences/Environment” clicks on the “select…” button.
    - In the “Select variables” dialog box, enable checkbox of “Path” item, and click on the “OK” button.
    - Back on the “Preferences/Environment” select the “Path” item added, and click on the “Edit…” button.
    - In the “Edit variables” dialog box, add the tool chain path “C:\Arduino\hardware\tools\arm-none-eabi\bin;C:\cygwin\bin;” infront of the existing path values, and click on the “OK” button.
    - In the “Preferences/Environment” click on the “OK” button.
    - restart Eclipse

    #4. Create the TeensyCore3 library Project:
    - In Eclipse, create a project, click on menu “File/New/C++ Project”.
    - In the dialog box “C++ Project”, type the Project Name : “TeensyCore3”
    - Disable, “Use default location” checkbox.
    - Click on the “Browse” button and select the location of your project.
    - In the “Project type” area, select “ARM Cross Target Static Library/Empty Project”.
    - In the “Toolchains” area, select “ARM Windows GCC (Yagarto)”.
    - Click on the “Next” button.
    - On the Configuration area disable the “Debug” checkbox.
    - Click on the “Finish” button.
    - Check the project, click on the project with right mouse button, in the popup window, click on the “Properties” item.
    - In the tree area in the left of dialog box, select “C/C++ General/Paths and Symbols”
    - Verify in the “Includes” tab than “Include directories” are filled with the path based added in the Windows Path (in step #2) on the Assembly, GNU C, GNU C++ languages. If the path is not correctly set, you must verify that the path has been correctly set.
    - Click on the “Cancel” button to close the dialog box.
    - Create a “src” folder in project, click on the project with right mouse button, click on “New/Folder” item of popup menu. Type “src” in “Folder name” field and click on the “Finish” button.
    - With Windows Explorer select all files in the “C:\Arduino\hardware\teensy\cores\teensy3\” folder and copy to the “src” folder of the “TeensyCore3” project.
    - In the “src” folder remove “Makefile”, “main.cpp”, “mk20dx128.c” files.
    - In Eclipse, click on the project with right mouse button, click on the “Refresh” item.
    - The “src” folder appears with its files and the sub folder “avr”…

    #5. TeensyCore3 library project Settings:
    - In Eclipse, click on the project with right mouse button, click on the “Properties” item.
    - Select “C/C++ Build/Settings” in the tree area on the left.
    - In the “Tool Settings” tab, verify than “Target Processor” property the Processor selected is “cortex-m4” and the “Thumb” checkbox are enabled.
    - Select “ARM Yagarto Windows GCC C Compiler/Preprocessor”
    in the “Defined symbols” area, add: F_CPU=96000000
    in the “Defined symbols” area, add: USB_SERIAL
    in the “Defined symbols” area, add: LAYOUT_US_ENGLISH
    - Select “ARM Yagarto Windows GCC C Compiler/Directories”, in the “Include paths” area, add “src” folder using the “Workspace…” button.
    - Same setting for “ARM Yagarto Windows GCC C++ Compiler/Preprocessor” and “ARM Yagarto Windows GCC C Compiler/Directories”, and click on “OK” button.
    - To build the TeensyCore3 library, click on the project with right mouse button, click on the “Build Project” item. In the “Release” folder, the “libTeensyCore3.a” file has been generated.

    #6. Create your Teensy project:
    - In Eclipse, create a project, click on menu File/New/C++ Project.
    - In the dialog box “C++ Project”, type the Project Name : “MyProject”.
    - In the “Project type” area, select “ARM Cross Target Application/Empty Project”.
    - In the “Toolchains” area, select “ARM Windows GCC (Yagarto)”.
    - Click on the “Next” button.
    - On the Configuration area disable the “Debug” checkbox.
    - Click on the “Finish” button.
    - Create a “src” folder in project, click on the project with right mouse button, click on “New/Folder” item of popup menu. Type “src” in “Folder name” field and click on the “Finish” button.
    - With Windows Explorer select “main.cpp”, “mk20dx128.c” and “mk20dx128.ld” files in the “C:\Arduino\hardware\teensy\cores\teensy3\” folder and copy to the “src” folder of the “MyProject” project.
    - In Eclipse, click on the project with right mouse button, click on the “Refresh” item.
    - The “src” folder appears with its files.
    - Modify main.cpp:
    #include <WProgram.h>

    extern "C" int main(void)
    {
    setup();

    while (1) {
    loop();
    yield();
    }
    }

    void setup()
    {
    }

    void loop()
    {
    }

    #7. MyProject project Settings:
    - In Eclipse, click on the project with right mouse button, click on the “Properties” item.
    - Select “C/C++ Build/Settings” in the tree area on the left.
    - In the “Tool Settings” tab, verify than “Target Processor” property the Processor selected is “cortex-m4” and the “Thumb” checkbox are enabled.
    - Select “ARM Yagarto Windows GCC C Compiler/Preprocessor”
    in the “Defined symbols” area, add: F_CPU=96000000
    in the “Defined symbols” area, add: USB_SERIAL
    in the “Defined symbols” area, add: LAYOUT_US_ENGLISH
    - Select “ARM Yagarto Windows GCC C Compiler/Directories”, in the “Include paths” area, add “src” folder of “TeensyCore3” using the “Workspace…” button.
    - Same setting for “ARM Yagarto Windows GCC C++ Compiler/Preprocessor” and “ARM Yagarto Windows GCC C Compiler/Directories”, and click on “OK” button.
    - Select “ARM Yagarto Windows GCC C++ Linker/General”, in the “Script file” field, clicks on the “Browse…” and select “mk20dx128.ld” file in the “src” folder of MyProject.
    - Select “ARM Yagarto Windows GCC C++ Linker/Library”
    in the “Libraries” area, add “TeensyCore3”
    in “Library search path” area, add the path where the TeensyCore3 library is located, use the “Workspace…” button and select the “Release” folder of TeensyCore3 library project.
    - Select “Project References”, in the “Project references for ‘MyProject’” enable the “TeensyCore3” checkbox.
    - To build your project, click on the project with right mouse button, click on the “Build Project” item. In the “Release” folder, the “MyProject.hex” file has been generated.

    #8. Teensy program loader settings:
    - In Eclipse, on the menu “Run/External Tools/External Tools Configurations…”
    - In the dialog box select on the “Program” item in the tree area, and click on the “New launch configuration” icon.
    - In the “Name” field, type “Teensy 3.0”.
    - In the “Main” tab, in the “Location” field, type the path : “C:/Arduino/hardware/tools/teensy_post_compile.exe”.
    - In the “Working Directory” field, type the path : “C:\Arduino\hardware\tools”
    - In the “Arguments” field, type : “-file=${project_name} -path=${project_loc}\Release -tools=C:/Arduino/hardware/tools”
    - In the “Common” tab, enable the checkbox “External Tools”, and click on the “Apply” button.

    #9. Upload program to the Teensy board:
    - In Eclipse, select your project, “MyProject”.
    - Click on the button “Run Teensy 3.0” of the tools bar to start loader provided by Paul
    - Push the reset button of the board to upload your program.
    - The Teensy LED should start blinking

    #10. Connect the terminal to the Teensy board:
    - To test the terminal, copy/paste the setup() and loop() functions of “Hello Word” example program in the “C:\Arduino\examples\Teensy\Tutorial3\HelloSerialM onitor\HelloSerialMonitor.pde” (overwriting the existing empty functions)
    - main.cpp should then look like this:

    Code:
    #include <WProgram.h>

    extern "C" int main(void)
    {
    setup();

    while (1) {
    loop();
    yield();
    }
    }

    void setup()
    {
    Serial.begin(38400);
    pinMode(13, OUTPUT);
    }

    void loop()
    {
    digitalWrite(13, HIGH);
    Serial.println("Hello World");
    delay(50);
    digitalWrite(13, LOW);
    delay(950);
    }

    - Compile and upload this program.
    - To open the terminal view, click on the menu “Window/Show View/Other…”.
    - In the “Show View” dialog box, in the tree area, select “Terminal/Terminal” and click on the “OK” button.
    - In the Terminal view, click on the “Settings” icon to open the “Terminal Settings” dialog box.
    - Type “Teensy 3.0” on the “View Title”, select “Serial” “Connection Type” select box, select the “Port”, select the “Baud Rate” to 38400 and click on the “OK” button.
    - Click on the “Connect” button, the “Hello Word” message appears every second.
    Last edited by chow; 08-16-2013 at 06:13 PM.

  23. #23
    Senior Member
    Join Date
    Jun 2013
    Location
    So. Calif
    Posts
    2,828
    I've been using Eclipse for Teensy on WIn 7 64 bit.. there was a simpler process posted.

  24. #24
    Junior Member
    Join Date
    May 2013
    Posts
    5
    Quote Originally Posted by stevech View Post
    I've been using Eclipse for Teensy on WIn 7 64 bit.. there was a simpler process posted.
    Some people may prefer this process. I am not advocating one over the other. Only that I have this process working. Those who wish to use the plugin are free to go do that.

  25. #25
    Senior Member
    Join Date
    Jun 2013
    Location
    So. Calif
    Posts
    2,828
    thank you very much for taking the time to upload the instructions.
    Very helpful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •