mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
11 lines
413 B
Makefile
11 lines
413 B
Makefile
MCU_VARIANT = nrf52840
|
|
CFLAGS += -DNRF52840_XXAA
|
|
|
|
$(BUILD)/$(PROJECT).zip: $(BUILD)/$(PROJECT).hex
|
|
adafruit-nrfutil dfu genpkg --dev-type 0x0052 --sd-req 0xFFFE --application $^ $@
|
|
|
|
# flash using adafruit-nrfutil dfu
|
|
flash: $(BUILD)/$(PROJECT).zip
|
|
@:$(call check_defined, SERIAL, example: SERIAL=/dev/ttyACM0)
|
|
adafruit-nrfutil --verbose dfu serial --package $^ -p $(SERIAL) -b 115200 --singlebank --touch 1200
|