Add flashing script

This commit is contained in:
Andrey Gusakov 2023-06-07 23:36:33 +03:00 committed by rusefillc
parent b74e190446
commit 9ac21ccdd9
3 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,3 @@
#!/bin/sh
openocd -f interface/cmsis-dap.cfg -f ./at32f4x.cfg $*
openocd -f interface/cmsis-dap.cfg -f ./at32f4x.cfg -c '$_TARGETNAME configure -rtos auto' $*

View File

@ -1 +1,8 @@
./openocd_artery.sh -c "program build/ch.bin verify reset exit 0x08000000"
#!/bin/sh
openocd -f interface/cmsis-dap.cfg -f ./at32f4x.cfg \
-c "init" \
-c "halt" \
-c "flash write_image erase build/ch.elf" \
-c "flash verify_image build/ch.elf" \
-c "reset" \
-c "exit"

View File

@ -1,3 +0,0 @@
#!/bin/sh
openocd -f interface/cmsis-dap.cfg -f ./at32f4x.cfg -c '$_TARGETNAME configure -rtos auto' $*