This commit is contained in:
parent
bc02ba0ce2
commit
3feca191ad
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue