debug.gdb_cmds
1 # Reset command shortcuts! 2 define reset 3 monitor reset 4 end 5 6 define rh 7 monitor reset halt 8 end 9 10 # SWO printing config 11 define swocfg 12 monitor tpiu create stm32l4x.cpu.tpiu -dap stm32l4x.dap -ap-num 0 13 monitor stm32l4x.cpu.tpiu configure -protocol uart -traceclk 80000000 -pin-freq 2000000 -output /tmp/swo.out -formatter off 14 monitor stm32l4x.cpu.tpiu enable 15 monitor itm port 0 on 16 printf "Routing SWO output to /tmp/swo.out.\nUse tail -f /tmp/swo.out to view\n" 17 end