|
@@ -47,6 +47,7 @@ LINKER = -Wl,--relax
|
47
|
47
|
|
48
|
48
|
PROGRAMMER = avrisp2
|
49
|
49
|
ISPPORT = usb
|
|
50
|
+ISPBAUD = 57600
|
50
|
51
|
|
51
|
52
|
TARGET = rx
|
52
|
53
|
|
|
@@ -68,10 +69,10 @@ $(BUILDDIR)/$(TARGET).hex: $(BUILDDIR)/$(TARGET).elf
|
68
|
69
|
$(OBJDUMP) -h -S $< > $(@:.hex=.lss)
|
69
|
70
|
|
70
|
71
|
program: $(BUILDDIR)/$(TARGET).hex
|
71
|
|
- $(AVRDUDE) -p $(MCU) -c $(PROGRAMMER) -P $(ISPPORT) -e -U $(BUILDDIR)/$(TARGET).hex
|
|
72
|
+ $(AVRDUDE) -p $(MCU) -c $(PROGRAMMER) -b $(ISPBAUD) -P $(ISPPORT) -e -D -U $(BUILDDIR)/$(TARGET).hex
|
72
|
73
|
|
73
|
74
|
debugProgram:
|
74
|
|
- $(MAKE) BUILDDIR=build/debug TARGET=debug MCU=atmega328 DEBUG=1 PROGRAMMER=stk500v1 ISPPORT=/dev/tty.usbserial-A100OZQ1 program
|
|
75
|
+ $(MAKE) BUILDDIR=build/debug TARGET=debug MCU=atmega328p DEBUG=1 PROGRAMMER=arduino ISPPORT=/dev/tty.usbserial-A100OZQ1 program
|
75
|
76
|
|
76
|
77
|
clean:
|
77
|
78
|
$(RM) $(BUILDDIR)
|