Add flashing script
This commit is contained in:
parent
b74e190446
commit
9ac21ccdd9
|
@ -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' $*
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
openocd -f interface/cmsis-dap.cfg -f ./at32f4x.cfg -c '$_TARGETNAME configure -rtos auto' $*
|
||||
|
Loading…
Reference in New Issue