浏览代码

Added ISP baudrate and fixed debug MCU type.

Thomas Buck 8 年前
父节点
当前提交
c5f4c36534
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      makefile

+ 3
- 2
makefile 查看文件

@@ -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)

正在加载...
取消
保存