mirror of
git://projects.qi-hardware.com/antorcha.git
synced 2024-12-22 12:49:31 +02:00
use new avrdude -L option to load project-specific config file
This commit is contained in:
parent
8108aaccd1
commit
a46d226efb
22
README
22
README
@ -15,22 +15,14 @@ be in the same directory as the top-level directory of Antorcha. E.g.,
|
||||
/home/qi/antorcha/
|
||||
|
||||
|
||||
/etc/avrdude.conf entry
|
||||
-----------------------
|
||||
Avrdude configuration
|
||||
---------------------
|
||||
|
||||
Antorcha uses the atusb programming adapter from the ben-wpan project.
|
||||
Since the pin positions of MISO and MOSI are swapped between ATmega32U2
|
||||
and the ATmega168, the following entry is needed in avrdude.conf (which
|
||||
is the same as the entry for nanonote_atusb except that the pin numbers
|
||||
for mosi and miso are swapped):
|
||||
and the ATmega168, we use a modified configuration entry.
|
||||
|
||||
programmer
|
||||
id = "nanonote_antorcha";
|
||||
desc = "NanoNote 8:10 card adapter for ATUSB";
|
||||
type = nanonote;
|
||||
reset = 1;
|
||||
sck = 8;
|
||||
mosi = 6;
|
||||
miso = 7;
|
||||
pgmled = 2;
|
||||
;
|
||||
It is passed to avrdude via the new -L option, available with the
|
||||
Nanonote patches at
|
||||
|
||||
http://projects.qi-hardware.com/index.php/p/ben-blinkenlights/source/tree/master/avrdude
|
||||
|
@ -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
10
fw/avrdude-antorcha.conf
Normal 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;
|
||||
;
|
Loading…
Reference in New Issue
Block a user