From f231e0d8a706b5601fba84d7341d8ef3009eafc8 Mon Sep 17 00:00:00 2001 From: Erick Ahmed Date: Sun, 18 Jan 2026 14:22:30 +0100 Subject: [PATCH] Remove port and baud options - Avrdude should already be capable to recognize the correct port on which the usbasp is connected - Removing baudrate, instead using slock_sck on usbasp --- src/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Makefile b/src/Makefile index dc9fc04..67062ac 100644 --- a/src/Makefile +++ b/src/Makefile @@ -4,10 +4,8 @@ TARGET = clockinator SRCS = $(TARGET).S CC = avr-gcc OBJCOPY = avr-objcopy -PORT = /dev/tty.usbmodem101 -BAUD = 19200 PROGRAMMER = usbasp -AVRDUDE = avrdude -P $(PORT) -b $(BAUD) +AVRDUDE = avrdude CFLAGS = -mmcu=$(MCU) -Wall -Os -DF_CPU=$(F_CPU) all: $(TARGET).hex @@ -20,7 +18,7 @@ $(TARGET).hex: $(TARGET).elf # Flash to MCU install: $(TARGET).hex - $(AVRDUDE) -c $(PROGRAMMER) -p $(MCU) -U flash:w:$(TARGET).hex:i -v + $(AVRDUDE) -c $(PROGRAMMER) -p $(MCU) -U flash:w:$(TARGET).hex:i -vvvv -D clean: rm -f *.elf *.hex