Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ led.o: led.c
avr-gcc $(CFLAGS) -c -o $@ $<

deploy: led.hex
avrdude -F -V -c arduino -p ATMEGA328p -P ${ARDUINO_USB} -b 115200 -U flash:w:led.hex
avrdude -F -V -c arduino -p ATMEGA328p -P ${ARDUINO_USB} -b 115200 -U flash:w:led.hex

deploy_old: led.hex
avrdude -F -V -c arduino -p ATMEGA328p -P ${ARDUINO_USB} -b 57600 -U flash:w:led.hex

clean: FRC
rm -f led.elf led.hex led.o led

FRC:
FRC:
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ Then you can upload the program via:
```bash
make deploy
```
If avrdude complains about the programmer not responding, your board might have
the old bootloader.
If this happens to be the case, just run:

```bash
make deploy_old
```

## References

Expand Down