summaryrefslogtreecommitdiff
path: root/bsp/Infineon/psoc6-pioneerkit_modus/libs/psoc6make/make/scripts/gdbinit
blob: 03e0e87df88bf7c4c6771bf81638d4b34a052e1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# CM4 port
target remote:3333

# Open all memory
set mem inaccessible-by-default off

# Enable semihosting
monitor arm semihosting enable

# Load the executable
# load <LOCATION OF ELF FILE>

# Reset device
monitor reset run

# Halt device
monitor halt

# Reset device via dedicated reset method
monitor psoc6 reset_halt sysresetreq
flushregs
mon gdb_sync
stepi

# Set temporary breakpoint at main
tbreak main

# Print registers
monitor reg

# Continue program execution
continue