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:
- Download and install the relevant driver for UDOO’s MicroUSB port (labeled as ‘cn6’ on the UDOO board)
- http://www.silabs.com/products/mcu/pages/usbtouartbridgevcpdrivers.aspx
- 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.
- 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:
- If you don’t already have it, download Arduino 1.5.x
- http://arduino.cc/en/Main/Software ->
- if you prefer to use Arduino 1.0.x for other applications, you can rename this version of the application to Arduino_1.5
- Download the relevant UDOO IDE patch file from here:
- http://www.udoo.org/downloads/#tab4
- Download the bossac file for your OS from the section labeled ‘Arduino IDE Patch’
- Extract the files and place it in your Arduino app.
- For Windows or Linux, place them in
<ARDUINO_IDE_PATH>/hardware/tools/ and override the original files
- 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/
- Open Arduino 1.5.x and copy this simple test sketch:
-
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("hello");
delay(100);
}
- Select the correct board under Tools>Board>Arduino Due Programming Port
- Select the correct port under Tools>Port>/dev/tty.SLAB_USBtoUART
- Remove j18 jumper on UDOO board (near wifi module and heatsink)
- Upload the sketch and open the Serial Monitor on the Arduino IDE. You should see “hello” printing repeatedly.
|