From 673b18eeae13e9c73604586d71c7d715d0fea7cc Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 12 Mar 2017 17:35:48 -0400 Subject: [PATCH] progress? :( --- firmware/flash_erase.bat | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/firmware/flash_erase.bat b/firmware/flash_erase.bat index 94530069db..c440e03064 100644 --- a/firmware/flash_erase.bat +++ b/firmware/flash_erase.bat @@ -6,7 +6,13 @@ echo I am flash_erase.bat rem weird, it used to be much nicer with openocd 0.8.0, file location was not broken? rem maybe https://sourceforge.net/p/openocd/tickets/105/ ? +pwd cp -r ../misc/install/openocd . +ls -l + +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