Skip to content

Commit

Permalink
nrf/Makefile: Add support for BOSSAC flasher.
Browse files Browse the repository at this point in the history
Used by Arduino boards.
  • Loading branch information
iabdalkader authored and dpgeorge committed Feb 16, 2023
1 parent 4eb72b3 commit 68d049e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ports/nrf/Makefile
Expand Up @@ -509,6 +509,15 @@ nrfutil_dfu_deploy: $(BUILD)/$(OUTPUT_FILENAME).hex
$(Q)nrfutil dfu usb-serial -pkg $(BUILD)/$(OUTPUT_FILENAME)_dfu.zip -p $(NRFUTIL_PORT) -t 0

deploy: nrfutil_dfu_deploy

else ifeq ($(FLASHER), bossac)

BOSSAC_PORT ?= /dev/ttyACM0
BOSSAC_OFFSET ?= 0x16000

deploy: $(BUILD)/$(OUTPUT_FILENAME).bin
$(Q)bossac -e -w --offset=$(BOSSAC_OFFSET) --port=$(BOSSAC_PORT) -i -d -U -R $<

endif

flash: deploy
Expand Down

0 comments on commit 68d049e

Please sign in to comment.