Flashing
This commit is contained in:
parent
a433b88319
commit
59b3f5dfcc
7 changed files with 38 additions and 3 deletions
12
debug/flash_procs.tcl
Normal file
12
debug/flash_procs.tcl
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
init
|
||||
|
||||
proc flash_stm32 {FILE} {
|
||||
reset halt
|
||||
sleep 100
|
||||
wait_halt 2
|
||||
|
||||
flash write_image erase $FILE
|
||||
verify_image $FILE
|
||||
|
||||
reset run
|
||||
}
|
||||
6
debug/openocd.cfg
Normal file
6
debug/openocd.cfg
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
source [find interface/cmsis-dap.cfg]
|
||||
source [find target/stm32l4x.cfg]
|
||||
|
||||
source "flash_procs.tcl"
|
||||
|
||||
adapter speed 200
|
||||
3
debug/openocd.gdb
Normal file
3
debug/openocd.gdb
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
target extended-remote localhost:3333
|
||||
load
|
||||
tui layout src
|
||||
Loading…
Add table
Add a link
Reference in a new issue