Specify vid and pid of device for upload target (#877)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Oleg Kalachev 2021-12-07 18:54:37 +03:00 committed by GitHub
parent f54ae2597e
commit 02ba5692e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@ $(OBJ_DIR)/flash: $(OBJ_DIR)/$(PROJECT).bin
touch $@
$(OBJ_DIR)/upload: $(OBJ_DIR)/$(PROJECT).bin
dfu-util -D $(OBJ_DIR)/$(PROJECT).bin -a 0 -s $(FLASH_ADDRESS) $(DFU_OPTIONS)
dfu-util -d 0xdf11:0x0483 -D $(OBJ_DIR)/$(PROJECT).bin -a 0 -s $(FLASH_ADDRESS) $(DFU_OPTIONS)
touch $@
flash: $(OBJ_DIR)/flash