- make
- binutils-avr
- avr-libc
- avrdude
- gcc-avr
make
The default make
task builds an Intel HEX file, led_blink.hex
, which can be
uploaded to the Arduino Uno.
sudo make upload
Flashes led_blink.hex
to the Arduino Uno, which is assumed to be connected
and available on /dev/ttyACM0
.
A status LED should be visibly blinking on the Arduino. However, this program also sends a message via the USB serial connection every time the LED blinks.
One way to interact via the serial connection is with CuteCom.
- Install CuteCom (
sudo apt-get install cutecom
) - Run CuteCom as root (
sudo cutecom
) - Set "Device" to
/dev/ttyACM0
"Baud rate" to9600
- Click "Open Device"
You should be able to see output from the program running on the Arduino being streamed to the display area (the string "Blink!" is printed each time the LED blinks).
Note: Make sure you close the device in CuteCom before running
sudo make upload
.