1# CM4 port
2target remote:3333
3
4# Open all memory
5set mem inaccessible-by-default off
6
7# Enable semihosting
8monitor arm semihosting enable
9
10# Load the executable
11# load <LOCATION OF ELF FILE>
12
13# Reset device
14monitor reset run
15
16# Halt device
17monitor halt
18
19# Reset device via dedicated reset method
20monitor psoc6 reset_halt sysresetreq
21flushregs
22mon gdb_sync
23stepi
24
25# Set temporary breakpoint at main
26tbreak main
27
28# Print registers
29monitor reg
30
31# Continue program execution
32continue