This commit is contained in:
Your Name
2024-04-27 03:16:35 -05:00
parent 02a5a8d343
commit 820bf5fcfd
155 changed files with 145595 additions and 0 deletions

8
body/board/recover.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env sh
set -e
FLASH_UTIL="openocd"
scons -u
$FLASH_UTIL -f interface/stlink.cfg -c "set CPUTAPID 0" -f target/stm32f4x.cfg -c init -c "reset halt" -c "flash write_image erase obj/body.bin.signed 0x08004000" -c "flash write_image erase obj/bootstub.body.bin 0x08000000" -c "reset run" -c "shutdown"