X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/blobdiff_plain/9299770a1ad1f8c06c34338c0c4dd7907eb20882..5bece6bf8c66ade0960290b6fe75623da7968e09:/bmc/Makefile diff --git a/bmc/Makefile b/bmc/Makefile index 6f27e42..b970878 100644 --- a/bmc/Makefile +++ b/bmc/Makefile @@ -1,9 +1,10 @@ -PROG=dragon_jtag -PORT=usb +#PROG=-c dragon_jtag -P usb PMCU=m16 GCCMCU=atmega16 #Fuses for 1MHz: #avrdude -v -p m16 -U lfuse:w:0xa1:m -U hfuse:w:0x19:m +#Fuses for 8MHz: +#avrdude -v -p m16 -U lfuse:w:0xa4:m -U hfuse:w:0x19:m CPUFLAG=-mmcu=$(GCCMCU) CC=avr-gcc @@ -19,7 +20,7 @@ bmc.bin: bmc $(OBJCOPY) -j .text -j .data -O binary $^ $@ flash: bmc.bin - avrdude -v -c $(PROG) -P $(PORT) -p $(PMCU) -U flash:w:$^ + avrdude -v $(PROG) -p $(PMCU) -U flash:w:$^ debug: bmc bmc.bin setsid avarice -g -D :4242