Using The Terminal - Galileo Quark SoC X1000 Getting Started Manual

Table of Contents

Advertisement

example, if your application is named "Arduino Galileo", rename it to "ArduinoGalileo".
Bad COM Port (Windows)
On Windows, if your upload hangs, eventually producing this error:
line 34: /dev/ttyS78: Read-only file system
Your COM port number may just be too high. You can reassign the COM port by going to the Device
Manager, then right-click on your Galileo device and select Properties. Next, go to the Port
Settings tab and click Advanced.... In this window, click the COM Port Number drop-down, and
assign the Galileo to a COM port that's less than 10.
After you've done that, reboot your computer and try uploading again.
Any other trouble uploading? Contact our
tech support team
or leave a comment in the discussion
thread here, and we'll be happy to help!

Using the Terminal

What makes the Galileo truly unique is the fact that it has Linux running under the hood. You can
interact with the Linux OS through the terminal, executing simple commands through a command-
line interface. In comparison to uploading Arduino sketches, interacting with the Linux command
line is a much more advanced skill, but this is as good a place as any to start learning.
There are two different ways to connect to the Linux terminal: over the 3.5mm stereo jack RS-232
port or over USB. The former requires a special cable (or two), and the latter requires you to upload
a special Arduino sketch. We'll cover both on this page, there are pros and cons to each approach.
Both of these methods require that you have a terminal emulator installed on your computer. Check
out our
Serial Terminal Basics
tutorial for our recommendations.
RS-232 Terminal
This method is safer, and easier, but it does require that you have some extra cables. The terminal
interface on the Galileo is a 3.5mm stereo jack, like what you might plug headphones into. The
three contacts on this connector break out ground, RX and TX. A specialized 3.5mm to DB9 RS-
232 cable can help move the interface to a more common connector, and (assuming your computer
doesn't have an archaic serial port) you may need a RS-232 to USB cable on top of that to interface
the board with your computer.
Once the board is connected to your computer, open up a serial terminal program (like
Tera Term
for
Windows or
Cool Term
for Mac). Set the serial port number, and change the baud rate to 115200
bps.
Check out the
section below
if you're not sure what to do with Linux.
Page 15 of 20

Advertisement

Table of Contents
loading

Table of Contents