This commit is contained in:
rusefi 2019-02-21 20:51:30 -05:00
parent bc02ba0ce2
commit 3feca191ad
3 changed files with 5 additions and 2 deletions

View File

@ -16,7 +16,7 @@ if not exist openocd/openocd.exe exit -1
rem newer discovery boards
echo Invoking openocd...
openocd\openocd.exe -f openocd/stm32f4discovery.cfg -c init -c targets -c "halt" -c "flash erase_address 0x08000000 0x0100000" -c shutdown
echo Just invoked openocd!
echo Just invoked openocd to erase chip!
rem older disocovery boards or cheap eBay ST-Link

View File

@ -16,7 +16,7 @@ if not exist openocd/openocd.exe exit -1
rem newer discovery boards
echo Invoking openocd...
openocd\openocd.exe -f openocd/st_nucleo_f7.cfg -c init -c targets -c "halt" -c "flash erase_address 0x08000000 0x0100000" -c shutdown
echo Just invoked openocd!
echo Just invoked openocd to erase chip!
rem older disocovery boards or cheap eBay ST-Link

View File

@ -5,6 +5,9 @@ cd firmware
rem Using magic 'cd' system variable here
set "cur_folder=%cd%"
call flash_erase407.bat
cd %cur_folder%
pwd
echo "hw_test.bat: trying to flash"
rem This script depends on someone else building firmware
call flash_openocd407.bat