adjusting scripts
This commit is contained in:
parent
49e91abf95
commit
78daad4b3e
|
@ -1,21 +0,0 @@
|
|||
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
|
||||
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
|
||||
|
||||
|
||||
rem newer discovery boards
|
||||
rem openocd\openocd.exe -f openocd/stm32f429disc1.cfg -c init -c targets -c "halt" -c "flash erase_address 0x08000000 0x0100000" -c shutdown
|
||||
|
||||
rem older disocovery boards or cheap eBay ST-Link
|
||||
openocd\openocd.exe -f openocd/stm32f4discovery.cfg -c init -c targets -c "halt" -c "flash erase_address 0x08000000 0x0100000" -c shutdown
|
|
@ -5,6 +5,5 @@ 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/stm32f4discovery.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"
|
||||
|
|
|
@ -24,9 +24,9 @@ echo %date% %time%
|
|||
|
||||
|
||||
echo Erasing chip
|
||||
if not exist flash_erase_new_board.bat echo NOT FOUND flash_erase_new_board.bat
|
||||
if not exist flash_erase_new_board.bat exit -1
|
||||
call flash_erase_new_board.bat
|
||||
if not exist flash_erase.bat echo NOT FOUND flash_erase.bat
|
||||
if not exist flash_erase.bat exit -1
|
||||
call flash_erase.bat
|
||||
|
||||
|
||||
echo build_current_bundle.bat: Building firmware
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
rem if you have an older Rev C discovery please update to latest Rev D firmware
|
||||
|
||||
rem As of March 2017 this enabled GDB debugging using ARM Eclipse plug-in
|
||||
|
||||
openocd\openocd.exe -f openocd/stm32f429disc1.cfg -c init -c reset
|
Loading…
Reference in New Issue