Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 820 Bytes

File metadata and controls

37 lines (25 loc) · 820 Bytes

AVR ZERO

BUILD SYSTEM

The project uses CMake to manage the build system. A bash script (init.sh) is provided to initialize build systems for a variety of targets. To initialize the build environment, run:

./init.sh

Then change to the relevant build directory and run make to build the executables:

cd build/atmega328p
make

UPLOADING

The executables may be uploaded to an Arduino using avrdude.

avrdude -c arduino -p [mcu] -P [port] -b [bitrate] -U flash:w:[filename].ihex

For example, on my computer, to upload hello-world.ihex to the Uno 3, I use the command:

avrdude -v -c arduino -p m328p -P COM6 -b 115200 -U flash:w:hello-world.ihex -D

For the Arduino Mega 2560:

avrdude -v -c wiring -p atmega2560 -P COM7 -b 115200 -U flash:w:blink.ihex -D