-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenocd.gdb
More file actions
36 lines (25 loc) · 757 Bytes
/
openocd.gdb
File metadata and controls
36 lines (25 loc) · 757 Bytes
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
33
34
35
36
# Connect to gdb remote server
target remote :3333
# Load will flash the code
load
# Enable demangling asm names on disassembly
set print asm-demangle on
# Enable pretty printing
set print pretty on
# Disable style sources as the default colors can be hard to read
set style sources off
# Initialize monitoring so iprintln! macro output
# is sent from the itm port to itm.txt
monitor tpiu config internal itm.txt uart off 8000000
# Turn on the itm port
monitor itm port 0 on
# Set a breakpoint at main, aka entry
break main
# Set a breakpoint at DefaultHandler
break DefaultHandler
# Set a breakpoint at HardFault
break HardFault
# Continue running until we hit the main breakpoint
continue
# Step from the trampoline code in entry into main
step