diff options
| author | iabdalkader <i.abdalkader@gmail.com> | 2023-02-13 16:08:29 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-02-16 12:46:23 +1100 |
| commit | 68d049ea5eedf5caf0362c920d91229eea479bf1 (patch) | |
| tree | a879b50df541657a9b4c31815285067c73de5e45 | |
| parent | 4eb72b34dfb25160ff93415cc0ae1779d3bb5a76 (diff) | |
nrf/Makefile: Add support for BOSSAC flasher.
Used by Arduino boards.
| -rw-r--r-- | ports/nrf/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ports/nrf/Makefile b/ports/nrf/Makefile index 78a17e09e..5cb2fc031 100644 --- a/ports/nrf/Makefile +++ b/ports/nrf/Makefile @@ -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 |
