Skip to content
This repository was archived by the owner on Jul 29, 2025. It is now read-only.

Commit 52f2e8c

Browse files
authored
Merge pull request #49 from rust-embedded/main-itm
break on main; restore ITM configure
2 parents a7f68f4 + 69700e1 commit 52f2e8c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

openocd.gdb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,24 @@ break DefaultHandler
88
break UserHardFault
99
break rust_begin_unwind
1010

11+
# *try* to stop at the user entry point (it might be gone due to inlining)
12+
break main
13+
1114
monitor arm semihosting enable
1215

16+
# # send captured ITM to the file itm.fifo
17+
# # (the microcontroller SWO pin must be connected to the programmer SWO pin)
18+
# # 8000000 must match the core clock frequency
19+
# monitor tpiu config internal itm.txt uart off 8000000
20+
21+
# # OR: make the microcontroller SWO pin output compatible with UART (8N1)
22+
# # 8000000 must match the core clock frequency
23+
# # 2000000 is the frequency of the SWO pin
24+
# monitor tpiu config external uart off 8000000 2000000
25+
26+
# # enable ITM port 0
27+
# monitor itm port 0 on
28+
1329
load
1430

1531
# start the process but immediately halt the processor

0 commit comments

Comments
 (0)