diff --git a/Makefile b/Makefile index c46c004..c51a48b 100644 --- a/Makefile +++ b/Makefile @@ -24,8 +24,8 @@ clean: rm -rf $(FILENAME_PREFIX).bin $(FILENAME_PREFIX).elf install: - openocd -f interface/stlink-v2-1.cfg -f rtl8710.ocd -c "init" -c "reset halt" -c "load_image $(FILENAME_PREFIX).bin $(ADDRESS) bin" -c "cortex_start $(ADDRESS)" + openocd -f interface/stlink-v2-1.cfg -f rtl8710.ocd -c "init" -c "reset halt" -c "load_image $(FILENAME_PREFIX).bin $(ADDRESS) bin" -c "cortex_start $(ADDRESS)" -c "shutdown" reset: - openocd -f interface/stlink-v2-1.cfg -f rtl8710.ocd -c "init" -c "reset halt" -c "reset run" + openocd -f interface/stlink-v2-1.cfg -f rtl8710.ocd -c "init" -c "reset halt" -c "reset run" -c "shutdown" diff --git a/rtl8710.ocd b/rtl8710.ocd index b1efda2..1c0f2e4 100644 --- a/rtl8710.ocd +++ b/rtl8710.ocd @@ -46,9 +46,6 @@ if {![using_hla]} { cortex_m reset_config sysresetreq } -# halt -# load_image $firmware 0x20000000 bin - proc cortex_start {address} { reg faultmask 0x01 set vectors ""