[scripts] Fix epsilon_flash target for n0100 (get rid of dfu-utils

dependency)
This commit is contained in:
Émilie Feral
2019-07-15 14:10:26 +02:00
parent 9a25462e3e
commit e1a863cdf6
2 changed files with 8 additions and 10 deletions

View File

@@ -42,16 +42,6 @@ $(BUILD_DIR)/%.map: $(BUILD_DIR)/%.elf
$(Q) awk -f scripts/device/memory_map.awk < $<
@echo "==============================="
# TODO: update the flash process for N0110
.PHONY: %_flash
%_flash: $(BUILD_DIR)/%.bin
@echo "DFU $@"
@echo "INFO About to flash your device. Please plug your device to your computer"
@echo " using an USB cable and press the RESET button the back of your device."
@until dfu-util -l | grep "Flash" > /dev/null 2>&1; do sleep 1;done
@echo "DFU $@"
$(Q) dfu-util -i 0 -a 0 -s 0x08000000:leave -D $<
.PHONY: openocd
openocd:
openocd -f scripts/$(PLATFORM)/openocd.$(MODEL).cfg

View File

@@ -0,0 +1,8 @@
.PHONY: %_flash
%_flash: $(BUILD_DIR)/%.dfu
@echo "DFU $@"
@echo "INFO About to flash your device. Please plug your device to your computer"
@echo " using an USB cable and press the RESET button the back of your device."
until $(PYTHON) scripts/device/dfu.py -l | grep -E "0483:a291|0483:df11" > /dev/null 2>&1; do sleep 2;done
@echo "DFU $@"
$(Q) $(PYTHON) scripts/device/dfu.py -m -u $<