1
0
mirror of git://projects.qi-hardware.com/antorcha.git synced 2025-04-21 12:27:27 +03:00

use new avrdude -L option to load project-specific config file

This commit is contained in:
Werner Almesberger
2012-07-22 12:12:33 -03:00
parent 8108aaccd1
commit a46d226efb
3 changed files with 22 additions and 18 deletions

View File

@@ -159,7 +159,7 @@ MKDEP = \
# ----- Programming and device control ----------------------------------------
upload: $(NAME).bin boot.hex
scp $(NAME).bin boot.hex $(HOST):
scp $(NAME).bin boot.hex avrdude-antorcha.conf $(HOST):
# lfuse: external clock, slow start-up
# hfuse: 4 kB boot loader, reset into boot loader
@@ -168,12 +168,14 @@ upload: $(NAME).bin boot.hex
# verification. So we just program 0x2f.
prog-app:
ssh $(HOST) avrdude -F -p $(CHIP) -c nanonote_antorcha -e \
ssh $(HOST) avrdude -F -p $(CHIP) \
-L avrdude-antorcha.conf -c nanonote_antorcha -e \
-U flash:w:antorcha.bin:r
# -U lfuse:w:0x60:m
prog:
ssh $(HOST) avrdude -F -p $(CHIP) -c nanonote_antorcha -e \
ssh $(HOST) avrdude -F -p $(CHIP) \
-L avrdude-antorcha.conf -c nanonote_antorcha -e \
-U flash:w:boot.hex:i \
-U efuse:w:0x00:m \
-U lfuse:w:0xe2:m

10
fw/avrdude-antorcha.conf Normal file
View File

@@ -0,0 +1,10 @@
programmer
id = "nanonote_antorcha";
desc = "NanoNote 8:10 card adapter for ATUSB";
type = nanonote;
reset = 1;
sck = 8;
mosi = 6;
miso = 7;
pgmled = 2;
;