blob: c107ba49b344e8ae7bf9d4ec83a99e80eb793b8e (
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
33
34
|
# CM4 port
target remote:3333
# Open all memory
set mem inaccessible-by-default off
# Target acquisition timeout
set remotetimeout 15
# Enable semihosting
monitor arm semihosting enable
# Load the executable
# load <LOCATION OF ELF FILE>
# Reset device
monitor reset init
# Halt device
monitor halt
# Synchronize client and server
flushregs
mon gdb_sync
stepi
# Set temporary breakpoint at main
tbreak main
# Print registers
monitor reg
# Continue program execution
continue
|