aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2019-12-08 18:32:43 +1100
committerDrashna Jaelre <drashna@live.com>2019-12-07 23:32:43 -0800
commitc74295de88e33322db8dcf861608c61db036b9ee (patch)
tree60e33a00c5c62767a325ab468167ff69d7c9f1da
parenta7209533a35f77b18997b250e16917d5ae666933 (diff)
downloadqmk_firmware-c74295de88e33322db8dcf861608c61db036b9ee.tar.gz
qmk_firmware-c74295de88e33322db8dcf861608c61db036b9ee.zip
Set proper AVR part for USBasp avrdude flashing (#7552)
* Set proper AVR part for USBasp avrdude flashing * Remove `PROGRAM_CMD` stuff from rules.mk as they should not be needed anymore * Missed the Plaid readme * Remove PROGRAM_CMD from Mysterium
-rw-r--r--keyboards/coseyfannitutti/discipad/rules.mk5
-rw-r--r--keyboards/coseyfannitutti/discipline/readme.md2
-rw-r--r--keyboards/coseyfannitutti/discipline/rules.mk4
-rw-r--r--keyboards/coseyfannitutti/mysterium/rules.mk4
-rw-r--r--keyboards/gingham/readme.md7
-rw-r--r--keyboards/gingham/rules.mk4
-rw-r--r--keyboards/handwired/hnah40/readme.md6
-rw-r--r--keyboards/handwired/hnah40/rules.mk6
-rw-r--r--keyboards/plaid/readme.md6
-rw-r--r--keyboards/plaid/rules.mk6
-rw-r--r--quantum/mcu_selection.mk6
-rw-r--r--tmk_core/avr.mk2
12 files changed, 20 insertions, 38 deletions
diff --git a/keyboards/coseyfannitutti/discipad/rules.mk b/keyboards/coseyfannitutti/discipad/rules.mk
index a9d06d608..52e06f6e7 100644
--- a/keyboards/coseyfannitutti/discipad/rules.mk
+++ b/keyboards/coseyfannitutti/discipad/rules.mk
@@ -11,14 +11,9 @@ MCU = atmega328p
11# ATmega328P USBasp 11# ATmega328P USBasp
12BOOTLOADER = USBasp 12BOOTLOADER = USBasp
13 13
14# Flash program via avrdude, but default command is not suitable.
15# You can use coseyfannitutti/discipad:default:program
16PROGRAM_CMD = avrdude -c usbasp -p m328p -U flash:w:$(BUILD_DIR)/$(TARGET).hex
17
18# disable debug code 14# disable debug code
19OPT_DEFS = -DDEBUG_LEVEL=0 15OPT_DEFS = -DDEBUG_LEVEL=0
20 16
21
22# Build Options 17# Build Options
23# change yes to no to disable 18# change yes to no to disable
24# 19#
diff --git a/keyboards/coseyfannitutti/discipline/readme.md b/keyboards/coseyfannitutti/discipline/readme.md
index d850151d1..27a179099 100644
--- a/keyboards/coseyfannitutti/discipline/readme.md
+++ b/keyboards/coseyfannitutti/discipline/readme.md
@@ -12,7 +12,7 @@ Make example for this keyboard (after setting up your build environment):
12 12
13 make coseyfannitutti/discipline:default 13 make coseyfannitutti/discipline:default
14 14
15Flashing example for this keyboard ([after setting up the bootloadHID flashing environment](https://docs.qmk.fm/#/flashing_bootloadhid)) 15Flashing example for this keyboard:
16 16
17 make coseyfannitutti/discipline:default:flash 17 make coseyfannitutti/discipline:default:flash
18 18
diff --git a/keyboards/coseyfannitutti/discipline/rules.mk b/keyboards/coseyfannitutti/discipline/rules.mk
index 24b5969b7..5666501ef 100644
--- a/keyboards/coseyfannitutti/discipline/rules.mk
+++ b/keyboards/coseyfannitutti/discipline/rules.mk
@@ -14,10 +14,6 @@ F_CPU = 16000000
14# ATmega328P USBasp 14# ATmega328P USBasp
15BOOTLOADER = USBasp 15BOOTLOADER = USBasp
16 16
17# Flash program via avrdude, but default command is not suitable.
18# You can use plaid:default:program
19PROGRAM_CMD = avrdude -c usbasp -p m32 -U flash:w:$(BUILD_DIR)/$(TARGET).hex
20
21# disable debug code 17# disable debug code
22OPT_DEFS = -DDEBUG_LEVEL=0 18OPT_DEFS = -DDEBUG_LEVEL=0
23 19
diff --git a/keyboards/coseyfannitutti/mysterium/rules.mk b/keyboards/coseyfannitutti/mysterium/rules.mk
index 51e1b8ae2..4147cfec9 100644
--- a/keyboards/coseyfannitutti/mysterium/rules.mk
+++ b/keyboards/coseyfannitutti/mysterium/rules.mk
@@ -14,10 +14,6 @@ F_USB = 16000000
14# ATmega328P USBasp 14# ATmega328P USBasp
15BOOTLOADER = USBasp 15BOOTLOADER = USBasp
16 16
17# Flash program via avrdude, but default command is not suitable.
18# You can use coseyfannitutti/discipline:default:program
19PROGRAM_CMD = avrdude -c usbasp -p m32 -U flash:w:$(BUILD_DIR)/$(TARGET).hex
20
21# disable debug code 17# disable debug code
22OPT_DEFS = -DDEBUG_LEVEL=0 18OPT_DEFS = -DDEBUG_LEVEL=0
23 19
diff --git a/keyboards/gingham/readme.md b/keyboards/gingham/readme.md
index 9893884e8..d0c3e6fad 100644
--- a/keyboards/gingham/readme.md
+++ b/keyboards/gingham/readme.md
@@ -9,11 +9,12 @@ Hardware Supported: ATMEGA328p with vusb [PCB](https://github.com/yiancar/gingha
9Hardware Availability: https://yiancar-designs.com/, https://novelkeys.xyz, https://mechboards.co.uk/ 9Hardware Availability: https://yiancar-designs.com/, https://novelkeys.xyz, https://mechboards.co.uk/
10 10
11Make example for this keyboard (after setting up your build environment): 11Make example for this keyboard (after setting up your build environment):
12
12 make gingham:default 13 make gingham:default
13 14
14Flash firmware: 15Flashing example for this keyboard:
15 // In bootloader mode 16
16 make gingham:default:program 17 make gingham:default:flash
17 18
18Bootloader: 19Bootloader:
19use usbasploader HSGW's my repository. 20use usbasploader HSGW's my repository.
diff --git a/keyboards/gingham/rules.mk b/keyboards/gingham/rules.mk
index aa228c875..2ef090bd6 100644
--- a/keyboards/gingham/rules.mk
+++ b/keyboards/gingham/rules.mk
@@ -14,10 +14,6 @@ MCU = atmega328p
14# ATmega328P USBasp 14# ATmega328P USBasp
15BOOTLOADER = USBasp 15BOOTLOADER = USBasp
16 16
17# Flash program via avrdude, but default command is not suitable.
18# You can use plaid:default:program
19PROGRAM_CMD = avrdude -c usbasp -p m328p -U flash:w:$(BUILD_DIR)/$(TARGET).hex
20
21# disable debug code 17# disable debug code
22OPT_DEFS = -DDEBUG_LEVEL=0 18OPT_DEFS = -DDEBUG_LEVEL=0
23 19
diff --git a/keyboards/handwired/hnah40/readme.md b/keyboards/handwired/hnah40/readme.md
index 20e2d7127..a15800dae 100644
--- a/keyboards/handwired/hnah40/readme.md
+++ b/keyboards/handwired/hnah40/readme.md
@@ -10,7 +10,11 @@ Hardware Availability: https://github.com/vuhopkep/PCB/tree/master/Hnah40-Atmega
10 10
11Make example for this keyboard (after setting up your build environment): 11Make example for this keyboard (after setting up your build environment):
12 12
13 make handwired/hnah40:default:program 13 make handwired/hnah40:default
14
15Flashing example for this keyboard:
16
17 make handwired/hnah40:default:flash
14 18
15## Bootloader 19## Bootloader
16use usbasploader from hsgw. 20use usbasploader from hsgw.
diff --git a/keyboards/handwired/hnah40/rules.mk b/keyboards/handwired/hnah40/rules.mk
index bbdf5176c..a705bff6a 100644
--- a/keyboards/handwired/hnah40/rules.mk
+++ b/keyboards/handwired/hnah40/rules.mk
@@ -11,15 +11,9 @@ MCU = atmega328p
11# ATmega328P USBasp 11# ATmega328P USBasp
12BOOTLOADER = USBasp 12BOOTLOADER = USBasp
13 13
14# Flash program via avrdude, but default command is not suitable.
15# You can use hnah40:default:program
16PROGRAM_CMD = avrdude -c usbasp -p m328p -U flash:w:$(BUILD_DIR)/$(TARGET).hex
17
18
19# disable debug code 14# disable debug code
20OPT_DEFS = -DDEBUG_LEVEL=0 15OPT_DEFS = -DDEBUG_LEVEL=0
21 16
22
23# Build Options 17# Build Options
24# change yes to no to disable 18# change yes to no to disable
25# 19#
diff --git a/keyboards/plaid/readme.md b/keyboards/plaid/readme.md
index dd49ecbdf..a491d05d3 100644
--- a/keyboards/plaid/readme.md
+++ b/keyboards/plaid/readme.md
@@ -11,9 +11,9 @@ Hardware Availability: Group buy in r/mk
11Make example for this keyboard (after setting up your build environment): 11Make example for this keyboard (after setting up your build environment):
12 make plaid:default 12 make plaid:default
13 13
14Flash firmware: 14Flashing example for this keyboard:
15 // In bootloader mode 15
16 make plaid:default:program 16 make plaid:default:flash
17 17
18## Bootloader 18## Bootloader
19use usbasploader in my repository. 19use usbasploader in my repository.
diff --git a/keyboards/plaid/rules.mk b/keyboards/plaid/rules.mk
index 5ac35ee7f..e020114b3 100644
--- a/keyboards/plaid/rules.mk
+++ b/keyboards/plaid/rules.mk
@@ -11,15 +11,9 @@ MCU = atmega328p
11# ATmega328P USBasp 11# ATmega328P USBasp
12BOOTLOADER = USBasp 12BOOTLOADER = USBasp
13 13
14# Flash program via avrdude, but default command is not suitable.
15# You can use plaid:default:program
16PROGRAM_CMD = avrdude -c usbasp -p m328p -U flash:w:$(BUILD_DIR)/$(TARGET).hex
17
18
19# disable debug code 14# disable debug code
20OPT_DEFS = -DDEBUG_LEVEL=0 15OPT_DEFS = -DDEBUG_LEVEL=0
21 16
22
23# Build Options 17# Build Options
24# change yes to no to disable 18# change yes to no to disable
25# 19#
diff --git a/quantum/mcu_selection.mk b/quantum/mcu_selection.mk
index f2c341e69..24b2b2abd 100644
--- a/quantum/mcu_selection.mk
+++ b/quantum/mcu_selection.mk
@@ -75,6 +75,9 @@ ifneq (,$(filter $(MCU),atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 a
75endif 75endif
76 76
77ifneq (,$(filter $(MCU),atmega32a)) 77ifneq (,$(filter $(MCU),atmega32a))
78 # MCU name for avrdude
79 AVRDUDE_MCU = m32
80
78 PROTOCOL = VUSB 81 PROTOCOL = VUSB
79 82
80 # Processor frequency. 83 # Processor frequency.
@@ -90,6 +93,9 @@ ifneq (,$(filter $(MCU),atmega32a))
90endif 93endif
91 94
92ifneq (,$(filter $(MCU),atmega328p)) 95ifneq (,$(filter $(MCU),atmega328p))
96 # MCU name for avrdude
97 AVRDUDE_MCU = m328p
98
93 PROTOCOL = VUSB 99 PROTOCOL = VUSB
94 100
95 # Processor frequency. 101 # Processor frequency.
diff --git a/tmk_core/avr.mk b/tmk_core/avr.mk
index 8207394d7..ecd2fd39a 100644
--- a/tmk_core/avr.mk
+++ b/tmk_core/avr.mk
@@ -240,7 +240,7 @@ avrdude-split-right: $(BUILD_DIR)/$(TARGET).hex check-size cpfirmware
240 $(call EXEC_AVRDUDE,eeprom-righthand.eep) 240 $(call EXEC_AVRDUDE,eeprom-righthand.eep)
241 241
242define EXEC_USBASP 242define EXEC_USBASP
243 avrdude -p $(MCU) -c usbasp -U flash:w:$(BUILD_DIR)/$(TARGET).hex 243 avrdude -p $(AVRDUDE_MCU) -c usbasp -U flash:w:$(BUILD_DIR)/$(TARGET).hex
244endef 244endef
245 245
246usbasp: $(BUILD_DIR)/$(TARGET).hex check-size cpfirmware 246usbasp: $(BUILD_DIR)/$(TARGET).hex check-size cpfirmware