From c1aae6cae2cff077ee15cf0fa201f5525b817bc9 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 12 Mar 2017 17:45:04 -0400 Subject: [PATCH] OMG, this never worked? --- firmware/flash_erase.bat | 2 +- firmware/flash_openocd.bat | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/firmware/flash_erase.bat b/firmware/flash_erase.bat index c440e03064..2e3872e001 100644 --- a/firmware/flash_erase.bat +++ b/firmware/flash_erase.bat @@ -14,6 +14,6 @@ if not exist openocd/openocd.exe echo openocd/openocd.exe NOT FOUND if not exist openocd/openocd.exe exit -1 -openocd/openocd -f openocd/stm32f429disc1.cfg -c init -c targets -c "halt" -c "flash erase_address 0x08000000 0x080000" -c shutdown +openocd\openocd.exe -f openocd/stm32f429disc1.cfg -c init -c targets -c "halt" -c "flash erase_address 0x08000000 0x080000" -c shutdown rem openocd-0.8.0.exe -f interface/stlink-v2.cfg -f board/stm32f4discovery.cfg -c init -c targets -c "halt" -c "flash erase_address 0x08000000 0x080000" -c shutdown \ No newline at end of file diff --git a/firmware/flash_openocd.bat b/firmware/flash_openocd.bat index 837ba73650..fca0a64a51 100644 --- a/firmware/flash_openocd.bat +++ b/firmware/flash_openocd.bat @@ -2,7 +2,9 @@ echo I am flash_openocd.bat cp -r ../misc/install/openocd . +if not exist openocd/openocd.exe echo openocd/openocd.exe NOT FOUND +if not exist openocd/openocd.exe exit -1 -openocd/openocd -f openocd/stm32f429disc1.cfg -c "program build/rusefi.bin verify reset exit 0x08000000" +openocd\openocd -f openocd/stm32f429disc1.cfg -c "program build/rusefi.bin verify reset exit 0x08000000" rem openocd-0.8.0.exe -f interface/stlink-v2.cfg -f board/stm32f4discovery.cfg -c "program rusefi.bin verify reset exit 0x08000000"