Skip to content

Commit

Permalink
Added command to start remote GDB
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemensElflein authored Feb 7, 2025
1 parent 6b752dc commit 1e76230
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions content/en/docs/Tutorials/flashing-stm32-from-cm4/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,12 @@ Get a binary (.elf format) and upload it to the STM32 like this:
openocd -f interface/xcore.cfg -f target/stm32h7x.cfg -c "program your-binary.elf verify reset exit"
```
The firmware should be uploaded and the program should be running.


### Debugging via remote GDB
In order to debug the program on your xCore board, run the following command:
```bash
openocd -f interface/xcore.cfg -f target/stm32h7x.cfg -c "bindto 0.0.0.0"
```

Then connect your favorite IDE to port 3333 to upload and debug using GDB

0 comments on commit 1e76230

Please sign in to comment.