RIOT_EDBG = $(RIOTBASE)/dist/tools/edbg/edbg EDBG ?= $(RIOT_EDBG) FLASHER ?= $(EDBG) OFLAGS ?= -O binary HEXFILE = $(ELFFILE:.elf=.bin) # Use USB serial number to select device when more than one is connected # Use /dist/tools/usb-serial/list-ttys.sh to find out serial number. # Usage: # export DEBUG_ADAPTER_ID="ATML..." # BOARD= make flash ifneq (,$(DEBUG_ADAPTER_ID)) EDBG_ARGS += --serial $(DEBUG_ADAPTER_ID) endif FFLAGS ?= $(EDBG_ARGS) -t $(EDBG_DEVICE_TYPE) -b -e -v -p -f $(HEXFILE) ifeq ($(RIOT_EDBG),$(FLASHER)) FLASHDEPS += $(RIOT_EDBG) endif