Hi Ricky !
I wrote a procedure to use Eclipse with Arduino Due board.
This procedure is written for Winwdows, but you can adapt it to Linux if you want.
But the problem is that I don't now what software to use to uplaod the program in Arduino Due board ...
I can't do test because I don't have Arduino Due board.
Eclipse installation for Arduino Due on WindowsIntroductionThis manual is written for Arduino Due IDE.
This manual will allow you install an Eclipse environment to edit and compile your programs but also to communicate with your Arduino Due 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 Due IDE :
http://arduino.cc/en/Main/SoftwareDue- Elicpe IDE for C/C++ Developers Juno SR1 32 bits (64 bits is not compatible with RXTX plug-in) :
http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/junosr1- GNU ARM Eclipse Plug-in :
http://sourceforge.net/projects/gnuarmeclipse/files/Current%20Releases/0.5.4/- TM-terminal 3.4.1 :
http://www.eclipse.org/downloads/download.php?file=/tm/downloads/drops/R-3.4.1-201209191030/TM-terminal-3.4.1.zip#2. Installation:- Unzip Arduino Due IDE, for example: "C:\arduino-1.5.1r2".
- Unzip Eclipse IDE for C/C++, for example: "C:\ArduinoDue\eclipse".
- Add Arduino tool chain path in the Windows Path: "C:\arduino-1.5.1r2\hardware\tools\g++_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:\ArduinoDue\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 ArduinoDueCore library Project:- In Eclipse, create a project, click on menu "File/New/C++ Project".
- In the dialog box "C++ Project", type the Project Name : "ArduinoDueCore"
- 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 (Sourcery G++ Lite)".
- 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\core" folder in project, click on the project with right mouse button, click on "New/Folder" item of popup menu. Type "src\core" in "Folder name" field and click on the "Finish" button.
- With Windows Explorer select all files in the "C:\arduino-1.5.1r2\hardware\arduino\sam\cores\arduino" folder and copy to the "src\core" folder of the "ArduinoDueCore" project.
- In the "src\core" folder, remove "main.cpp" and "syscalls_sam3.c" files.
- In the "src" folder create "lib" folder.
- From the "C:\arduino-1.5.1r2\hardware\arduino\sam\system\" folder copy the followings folders and files to the "src\lib" project folder:
- "CMSIS\CMSIS\Include\*.h" (with all the include files).
- "CMSIS\Device\ATMEL\" with the include files : "sam3.h", "sam.h".
- "CMSIS\Device\ATMEL\sam3xa\include\component\*.h" (with all the include files).
- "CMSIS\Device\ATMEL\sam3xa\include\instance\*.h" (with all the include files).
- "CMSIS\Device\ATMEL\sam3xa\include\pio\pio_sam3x8e.h".
- "CMSIS\Device\ATMEL\sam3xa\include\" with the include files: "sam3x8e.h", "sam3xa.h", "system_sam3xa.h".
- "CMSIS\Device\ATMEL\sam3xa\source\gcc_atmel \startup_sam3xa.c".
- "CMSIS\Device\ATMEL\sam3xa\source\system_sam3xa.c".
- "libsam\include\*.h".
- "libsam\source\*.c".
- "libsam\ship.h".
- From the "C:\ARM\arduino-1.5.1r2\hardware\arduino\sam" folder copy the followings folders and files to the "src\lib" project folder:
- "variants\arduino_due_x\linker_scripts\gcc\flash.ld".
- "variants\arduino_due_x\linker_scripts\" with the files: "pins_arduino.h", "variant.cpp", "variant.h".
- In Eclipse, click on the project with right mouse button, click on the "Refresh" item.
- The "src\core" and "src\lib" folders appear with its files and the sub folders and others source code files…
Following the next post...