Saturday, 18 March 2017

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

No comments:

Post a Comment