mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[scripts] Fix epsilon_flash target for n0100 (get rid of dfu-utils
dependency)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 $<
|
||||
|
||||
Reference in New Issue
Block a user