2020-11-28 10:48:44 +07:00
|
|
|
MCU_VARIANT = nrf52840
|
|
|
|
CFLAGS += -DNRF52840_XXAA
|
|
|
|
|
2023-05-16 10:14:00 +07:00
|
|
|
# All source paths should be relative to the top level.
|
|
|
|
LD_FILE = hw/bsp/nrf/linker/nrf52840_s140_v6.ld
|
|
|
|
|
2021-01-26 12:46:24 +07:00
|
|
|
$(BUILD)/$(PROJECT).zip: $(BUILD)/$(PROJECT).hex
|
2020-11-28 01:06:10 +07:00
|
|
|
adafruit-nrfutil dfu genpkg --dev-type 0x0052 --sd-req 0xFFFE --application $^ $@
|
|
|
|
|
2020-11-28 00:45:44 +07:00
|
|
|
# flash using adafruit-nrfutil dfu
|
2021-01-26 12:46:24 +07:00
|
|
|
flash: $(BUILD)/$(PROJECT).zip
|
2020-11-28 01:06:10 +07:00
|
|
|
@:$(call check_defined, SERIAL, example: SERIAL=/dev/ttyACM0)
|
|
|
|
adafruit-nrfutil --verbose dfu serial --package $^ -p $(SERIAL) -b 115200 --singlebank --touch 1200
|