Yes, you can compile the arduino sketch and upload the binary to the processor with the "bossac" program. If you need to do this from the internal imx6 UDOO processor you can find the working bossac in the "hardware/tools" folder of the arduino ide preinstalled. If you need to program arduino from an external pc you can download the bossac at this page: http://www.udoo.org/downloads/#tab4. The command you need should be something like: Code: sudo ./bossac --port=ttymxc3 -U false -e -w -v -b /<path>/Blink.bin -R you need to replace the port name and the binary file name with yours.
I'm thinking of doing this: 1) Compile Arduino sketch on PC 2) Transfer compiled file to UDOO (wlan) 3) Upload compiled file to the Arduino side via ssh/vnc Just one problem, I'm not sure what would need to be done at stages 1 & 3. Does the compiling in stage 1) need some special settings? For stage 3), how would one just upload a pre-compiled file to the Arduino side? I assume this is very simple, if you just know what to do.
Solved the problems. 1) Newest Arduino 1.5.x version on PC 1.1) "verify" sketch 1.2) copy .bin file from tmp direcetory where arduino IDE creates it 2) syncthing! 3) Code: sudo /opt/arduino-1.5.4/hardware/tools/bossac --port=ttymxc3 -U false -e -w -v -b filetoburn.bin -R
I uploaded a script here which you might find useful: http://www.udoo.org/forum/here-script-compile-upload-arduino-sketches-via-cli-t1822.html This allows the full build process (.ino file -> .bin) to be done from the command-line, along with optional flashing of the SAM3X, with no need for X11 or Java to run the Arduino IDE's GUI. You do need to have the IDE installed, though, since the script requires its cross-compiler and libraries. I prefer to work from the command-line whenever possible, and found the standard graphical interface to be cumbersome and slow... especially how it would needlessly rebuild the standard library code over and over for every compile.