Skip to content

Commit

Permalink
Specify bootloader TTY device by name
Browse files Browse the repository at this point in the history
  • Loading branch information
szszszsz committed Jun 21, 2023
1 parent f2daacc commit 730b69b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion utils/nrf-bootloader/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ UPLOAD_SH = $(BL_DIR)/upload.sh

FW_SIGNED = fw_signed_update.zip
FW_RAW = fw_unsigned.hex
TTYDEV = /dev/ttyACM1
TTYDEV := $(wildcard /dev/serial/by-id/usb-Nitrokey_Nitrokey_3_Bootloader*)
# /dev/serial/by-id/usb-Nitrokey_Nitrokey_3-if02
# /dev/serial/by-id/usb-Nitrokey_Nitrokey_3_Bootloader_F95AF80A9E98-if00

fw-assemble-dfu: $(FW_SIGNED)

Expand Down
2 changes: 1 addition & 1 deletion utils/nrf-builder/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ ALL_ARTIFACTS := $(FW_NAME_RELEASE) $(FW_NAME_PROVISIONER) $(FW_NAME_DEVELOP) \

SRCS = $(shell find $(FW_RUNNER)/src -name "*.rs" )

TTY := $(shell ls -1rt /dev/ttyACM* | tail -n 1 | xargs)
TTY := $(wildcard /dev/serial/by-id/usb-Nitrokey_Nitrokey_3_Bootloader*)

EXTRA_FEATURES :=

Expand Down

0 comments on commit 730b69b

Please sign in to comment.