[Q]: Tailoring the Due to Eclipse..

Nassarane:
Hi Zad,

What file .h .c .cpp the ARDUINO define is it used, I don't found it ?

I resolved my Bossac problem last night in this topic : http://arduino.cc/forum/index.php/topic,141628.0.html

I used the terminal to erase the memory of the MCU :

  • I open the terminal from eclipse.
  • I close the terminal from eslipse.
  • I launch the Bossac command line from eclipse.

The software upload running...

Thanks very much Zad.

Nassa.

About the bossac problem , It seems that in the Arduino due main page, the figure displaying the arduino shows a wrong indication of the native port.
I've tried to open and close the programming port, the one near the power jack , using the Target Terminal plugin without be able to run the bossac. it works instead when the serial port is opened and closed at a rate of 1200, which shall be the behavior of the native port http://arduino.cc/en/Guide/ArduinoDue .

BTW to upload the arduinoDue without have to press the erase button I've made a little java program wich uses RXTX library. This because I don't know how automatically use the "Target Terminal Management" plugin in eclipse, if someone knows how to open and close a serial connection in eclipse using external tool configuration please let me know.
So using this little program which open the serial at 1200 , I've created a run configuration, with two external tool configurations:

First download the file in attach
and expand it inside the AduinoDueLibrary
A new directory called tools is expanded.

Create a new external tool : Run->External Tool -> External tool configurations...
Create a new program and name it as you wish , mine is ArduinoDue_eraseViaSerial
Then in Location: /usr/bin/java (Put your specific path to java)
in Working directory : the path to the expanded zip : ${workspace_loc:/ArduinoDueLib/tools/}
in Args:

-jar
${workspace_loc:/ArduinoDueLib/tools/openSerial_fat.jar}
usbmodemfd121

In place of usbmodemfd121 the specific name of the arduino port shall be used.

in the Build tab uncheck "Build before launch"
then Save.

in Eclipse menu : Run -> Run Configurations
Create a new launch groups and choose a name , I used Arduino_upload.
In the Launches tab press add and select Program->"NameYouGaveToTheReaseProcedure" and as Post Launch action select "wait until terminated"
Then add the other Program , which is the one that uses bossac.
In Common Tab is possible to show the run configuration in the preferite, I have checked it.

Save it .
It shall appear on the eclipse play icon , pushing the down arrow near it.

The java program has been tested in a OSX 1.6.0 intel 64 bit, let me know if it works also in windows, in the zip are contained dll for win32 bit , libraries and dll has been downloaded from her
http://rxtx.qbang.org/pub/rxtx/rxtx-2.1-7-bins/
Unfortunately aren't provided 64 bit dll library , you can search them on the net if you need.
Cheers
Zad

tools.zip (223 KB)