Browse Source

Added ISP baudrate and fixed debug MCU type.

Thomas Buck 8 years ago
parent
commit
c5f4c36534
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      makefile

+ 3
- 2
makefile View File

47
 
47
 
48
 PROGRAMMER = avrisp2
48
 PROGRAMMER = avrisp2
49
 ISPPORT = usb
49
 ISPPORT = usb
50
+ISPBAUD = 57600
50
 
51
 
51
 TARGET = rx
52
 TARGET = rx
52
 
53
 
68
 	$(OBJDUMP) -h -S $< > $(@:.hex=.lss)
69
 	$(OBJDUMP) -h -S $< > $(@:.hex=.lss)
69
 
70
 
70
 program: $(BUILDDIR)/$(TARGET).hex
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
 debugProgram:
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
 clean:
77
 clean:
77
 	$(RM) $(BUILDDIR)
78
 	$(RM) $(BUILDDIR)

Loading…
Cancel
Save