Program UDOO Arduino from External Computer

Compiling Arduino code on the UDOO is much slower than compiling on your laptop. Writing and compiling Arduino sketches on your laptop and then uploading them to the onboard UDOO Due will speed up your development process.

To make this possible, you’ll need to set up your computer to work with this specific version of the Arduino.

Install USB Driver:

  1. Download and install the relevant driver for UDOO’s MicroUSB port (labeled as ‘cn6’ on the UDOO board)
    1. http://www.silabs.com/products/mcu/pages/usbtouartbridgevcpdrivers.aspx
  2. Connect your computer to the UDOO Due with a USB – MicroUSB cable. Make sure you plug the MicroUSB side into the port labeled CN6 on the UDOO board.
  3. Determine if you can detect the UDOO Due device. On OSX, open a terminal and enter system_profiler SPUSBDataType. You should see a listing for CP2104 USB to UART Bridge Controller

Patch Arduino IDE:

  1.  If you don’t already have it, download Arduino 1.5.x
    1. http://arduino.cc/en/Main/Software ->
    2. if you prefer to use Arduino 1.0.x for other applications, you can rename this version of the application to Arduino_1.5
  2. Download the relevant UDOO IDE patch file from here:
    1. http://www.udoo.org/downloads/#tab4
    2. Download the bossac file for your OS from the section labeled ‘Arduino IDE Patch’
  3. Extract the files and place it in your Arduino app.
    1. For Windows or Linux, place them in <ARDUINO_IDE_PATH>/hardware/tools/ and override the original files
    2. For OSX, right-click the Arduino application icon and select “Show package contents”. then place the bossac file in <ARDUINO_IDE_PACKAGE>/Contents/Resources/Java/hardware/tools/
  4. Open Arduino 1.5.x and copy this simple test sketch:
    1. void setup() {
        Serial.begin(9600);
      }
      void loop() {
        Serial.println("hello");
        delay(100);
      }
  5. Select the correct board under Tools>Board>Arduino Due Programming Port
  6. Select the correct port under Tools>Port>/dev/tty.SLAB_USBtoUART
  7. Remove j18 jumper on UDOO board (near wifi module and heatsink)
  8. Upload the sketch and open the Serial Monitor on the Arduino IDE. You should see “hello” printing repeatedly.