mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-23 20:33:45 +02:00
nxuart/fw/Makefile (prog): supply an 8 MHz clock while programming
This commit is contained in:
parent
0c2b98274f
commit
a8c10a0050
@ -4,6 +4,8 @@ CFLAGS = -g -Wall -Wshadow -Werror \
|
|||||||
NAME=nxuart
|
NAME=nxuart
|
||||||
CHIP=atmega48
|
CHIP=atmega48
|
||||||
|
|
||||||
|
CLK_MHZ=8
|
||||||
|
|
||||||
AVR_PREFIX = $(BIN_PATH) avr-
|
AVR_PREFIX = $(BIN_PATH) avr-
|
||||||
CC = $(AVR_PREFIX)gcc
|
CC = $(AVR_PREFIX)gcc
|
||||||
OBJCOPY = $(AVR_PREFIX)objcopy
|
OBJCOPY = $(AVR_PREFIX)objcopy
|
||||||
@ -23,5 +25,7 @@ upload: $(NAME).bin
|
|||||||
scp $(NAME).bin jlime:
|
scp $(NAME).bin jlime:
|
||||||
|
|
||||||
prog:
|
prog:
|
||||||
ssh jlime avrdude -p atmega48 -c nanonote_$(NAME) \
|
ssh jlime avrdude -p atmega48 -c nanonote_$(NAME) -e \
|
||||||
-e -U flash:w:$(NAME).bin:r
|
-x clk=$(CLK_MHZ) \
|
||||||
|
-U flash:w:$(NAME).bin:r \
|
||||||
|
-U lfuse:w:0x60:m
|
||||||
|
Loading…
Reference in New Issue
Block a user