F7 progress

This commit is contained in:
rusefi 2019-02-21 08:27:08 -05:00
parent 39663a60d2
commit 4605ee4600
5 changed files with 42 additions and 11 deletions

View File

@ -7,8 +7,7 @@ rem weird, it used to be much nicer with openocd 0.8.0, file location was not br
rem maybe https://sourceforge.net/p/openocd/tickets/105/ ?
pwd
cp -r ../misc/install/openocd .
ls -l
cd ../misc/install
if not exist openocd/openocd.exe echo openocd/openocd.exe NOT FOUND
if not exist openocd/openocd.exe exit -1

View File

@ -0,0 +1,23 @@
rem st-link_cli -c SWD ur -ME
rem 0x100000 would erase both code and configuration
rem use 0x080000 if you want to erase only configuratio
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
cd ../misc/install
if not exist openocd/openocd.exe echo openocd/openocd.exe NOT FOUND
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!
rem older disocovery boards or cheap eBay ST-Link
rem openocd\openocd.exe -f openocd/stm32f4discovery.cfg -c init -c targets -c "halt" -c "flash erase_address 0x08000000 0x0100000" -c shutdown

View File

@ -1,9 +0,0 @@
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/stm32f4discovery.cfg -c "program build/rusefi.bin verify reset exit 0x08000000"

View File

@ -0,0 +1,9 @@
echo I am flash_openocd.bat
cd ../misc/install
if not exist openocd/openocd.exe echo openocd/openocd.exe NOT FOUND
if not exist openocd/openocd.exe exit -1
openocd\openocd -f openocd/stm32f4discovery.cfg -c "program ../../firmware/build/rusefi.bin verify reset exit 0x08000000"

View File

@ -0,0 +1,9 @@
echo I am flash_openocd767.bat
cd ../misc/install
if not exist openocd/openocd.exe echo openocd/openocd.exe NOT FOUND
if not exist openocd/openocd.exe exit -1
openocd\openocd -f openocd/st_nucleo_f7.cfg -c "program ../../firmware/build/rusefi.bin verify reset exit 0x08000000"