Skip to content

Commit 1e76230

Browse files
Added command to start remote GDB
1 parent 6b752dc commit 1e76230

File tree

1 file changed

+9
-0
lines changed
  • content/en/docs/Tutorials/flashing-stm32-from-cm4

1 file changed

+9
-0
lines changed

content/en/docs/Tutorials/flashing-stm32-from-cm4/_index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,12 @@ Get a binary (.elf format) and upload it to the STM32 like this:
3131
openocd -f interface/xcore.cfg -f target/stm32h7x.cfg -c "program your-binary.elf verify reset exit"
3232
```
3333
The firmware should be uploaded and the program should be running.
34+
35+
36+
### Debugging via remote GDB
37+
In order to debug the program on your xCore board, run the following command:
38+
```bash
39+
openocd -f interface/xcore.cfg -f target/stm32h7x.cfg -c "bindto 0.0.0.0"
40+
```
41+
42+
Then connect your favorite IDE to port 3333 to upload and debug using GDB

0 commit comments

Comments
 (0)