Add avrdude split EE_HANDS flash commands (#5414)
* Add EEPROM avrdude flashing commands for setting handedness * Update docs with info on flashing EEPROM handedness files with commands
This commit is contained in:
		
							parent
							
								
									9c4424ae2c
								
							
						
					
					
						commit
						3c257c1c6e
					
				
					 2 changed files with 16 additions and 2 deletions
				
			
		|  | @ -223,7 +223,11 @@ define EXEC_AVRDUDE | |||
| 			printf "Waiting for $$USB to become writable."; \
 | ||||
| 			while [ ! -w "$$USB" ]; do sleep 0.5; printf "."; done; echo ""; \
 | ||||
| 		fi; \
 | ||||
| 		avrdude -p $(MCU) -c avr109 -P $$USB -U flash:w:$(BUILD_DIR)/$(TARGET).hex; \
 | ||||
| 		if [ -z "$(1)" ]; then \
 | ||||
| 			avrdude -p $(MCU) -c avr109 -P $$USB -U flash:w:$(BUILD_DIR)/$(TARGET).hex; \
 | ||||
| 		else \
 | ||||
| 			avrdude -p $(MCU) -c avr109 -P $$USB -U flash:w:$(BUILD_DIR)/$(TARGET).hex -U eeprom:w:$(QUANTUM_PATH)/split_common/$(1); \
 | ||||
| 		fi \
 | ||||
| 	fi | ||||
| endef | ||||
| 
 | ||||
|  | @ -232,9 +236,15 @@ avrdude: $(BUILD_DIR)/$(TARGET).hex check-size cpfirmware | |||
| 
 | ||||
| avrdude-loop: $(BUILD_DIR)/$(TARGET).hex check-size cpfirmware | ||||
| 	while true; do \
 | ||||
| 	    $(call EXEC_AVRDUDE) ; \
 | ||||
| 		$(call EXEC_AVRDUDE) ; \
 | ||||
| 	done | ||||
| 
 | ||||
| avrdude-split-left: $(BUILD_DIR)/$(TARGET).hex check-size cpfirmware | ||||
| 	$(call EXEC_AVRDUDE,eeprom-lefthand.eep) | ||||
| 
 | ||||
| avrdude-split-right: $(BUILD_DIR)/$(TARGET).hex check-size cpfirmware | ||||
| 	$(call EXEC_AVRDUDE,eeprom-righthand.eep) | ||||
| 
 | ||||
| # Convert hex to bin.
 | ||||
| bin: $(BUILD_DIR)/$(TARGET).hex | ||||
| 	$(OBJCOPY) -Iihex -Obinary $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET).bin | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Danny
						Danny