This commit is contained in:
Lorenzo Good 2026-06-01 18:19:56 -04:00
parent a433b88319
commit 59b3f5dfcc
Signed by: lorenzo
GPG key ID: 7FCD64BD81180ED0
7 changed files with 38 additions and 3 deletions

12
debug/flash_procs.tcl Normal file
View 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
View 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
View file

@ -0,0 +1,3 @@
target extended-remote localhost:3333
load
tui layout src