diff --git a/content/en/docs/Tutorials/flashing-stm32-from-cm4/_index.md b/content/en/docs/Tutorials/flashing-stm32-from-cm4/_index.md index 5bde2f6..0da5777 100644 --- a/content/en/docs/Tutorials/flashing-stm32-from-cm4/_index.md +++ b/content/en/docs/Tutorials/flashing-stm32-from-cm4/_index.md @@ -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