Flashing an AVR from a Raspberry Pi

It seems things have changed a bit since I last worked with an Arduino on a Raspberry Pi - plus I've forgotten a load of stuff. This is a note to myself, more than anything.

  1. You can install avrdude with sudo apt install avrdude.
  2. On a Raspberry Pi 3 or a Pi Zero W, the /dev/ttyAMA0 UART is used for Bluetooth. The GPIO pins are instead mapped to /dev/ttyS0.
  3. The Arduino Pro Mini (5V/16MHz) has an AtMega328P and the bootloader runs at 57,600 bps.
  4. You can find the built .hex file in /tmp/build*.
  5. The avrdude flash command line is:
avrdude -p m328p -c arduino -P /dev/ttyS0 -U ./path/to/file.hex


Popular posts from this blog

Where next for the Monotron

Embedded Rust in 2018

I decided to make an 1980's Home Computer in Rust - Part 1