From f3717ca7cec82bdcec4bf96a96cb338d1fdd81d1 Mon Sep 17 00:00:00 2001 From: pvvx Date: Fri, 23 Sep 2016 12:55:48 +0300 Subject: [PATCH] update --- flasher.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/flasher.mk b/flasher.mk index 85f71c0..649f93f 100644 --- a/flasher.mk +++ b/flasher.mk @@ -111,14 +111,17 @@ reset: runram: @start $(JLINK_PATH)$(JLINK_GDB) -device Cortex-M3 -if SWD -ir -endian little -speed $(FLASHER_SPEED) @$(GDB) -x flasher/gdb_run_ram.jlink - @taskkill.exe /F /IM $(JLINK_GDB) + @taskkill.exe -F -IM $(JLINK_GDB) test: @$(OPENOCD) -f interface/$(FLASHER).cfg -c "adapter_khz $(FLASHER_SPEED)" -f $(FLASHER_PATH)rtl8710.ocd -f $(FLASHER_PATH)cortex.ocd -c "init" -c "reset halt" -c "load_image $(TST_IMAGE) $(LD_ADDRESS) bin" -c "cortex_bootstrap $(ST_ADDRESS)" -c "shutdown" readfullflash: @rm -f $(BIN_DIR)/fullflash.bin - @$(OPENOCD) -f interface/$(FLASHER).cfg -c "adapter_khz $(FLASHER_SPEED)" -f $(FLASHER_PATH)rtl8710.ocd -f $(FLASHER_PATH)cortex.ocd -c "init" -c "reset halt" -c "rtl8710_flash_read_id" -c "rtl8710_flash_read $(BIN_DIR)/fullflash.bin 0 1048576" -c "reset run" -c "shutdown" + @start $(JLINK_PATH)$(JLINK_GDB) -device Cortex-M3 -if SWD -ir -endian little -speed $(FLASHER_SPEED) + @$(GDB) -x flasher/gdb_rdflash.jlink + @taskkill.exe -F -IM $(JLINK_GDB) +# @$(OPENOCD) -f interface/$(FLASHER).cfg -c "adapter_khz $(FLASHER_SPEED)" -f $(FLASHER_PATH)rtl8710.ocd -f $(FLASHER_PATH)cortex.ocd -c "init" -c "reset halt" -c "rtl8710_flash_read_id" -c "rtl8710_flash_read $(BIN_DIR)/fullflash.bin 0 1048576" -c "reset run" -c "shutdown" if [ -s $(BIN_DIR)/fullflash.bin ]; then echo FullFlash = $(BIN_DIR)/fullflash.bin; fi $(NMAPFILE): $(ELFFILE)