| 1 | target remote :3333 |
| 2 | |
| 3 | # print demangled symbols by default |
| 4 | set print asm-demangle on |
| 5 | |
| 6 | monitor arm semihosting enable |
| 7 | |
| 8 | # # send captured ITM to the file itm.fifo |
| 9 | # # (the microcontroller SWO pin must be connected to the programmer SWO pin) |
| 10 | # # 8000000 must match the core clock frequency |
| 11 | # monitor tpiu config internal itm.fifo uart off 8000000 |
| 12 | |
| 13 | # # OR: make the microcontroller SWO pin output compatible with UART (8N1) |
| 14 | # # 2000000 is the frequency of the SWO pin |
| 15 | # monitor tpiu config external uart off 8000000 2000000 |
| 16 | |
| 17 | # # enable ITM port 0 |
| 18 | # monitor itm port 0 on |
| 19 | |
| 20 | load |
| 21 | step |