I solved the problem. When I proceeded through the terminal as stated on this page, I was getting an error. The solution to the error is as follows.
Error: arm-none-eabi-gdb on stm32 warning: unrecognized item “timeout” in “qSupported” response
- Ignoring packet error, continuing…
- warning: unrecognized item “timeout” in “qSupported” response
- Ignoring packet error, continuing…
- Remote replied unexpectedly to ‘vMustReplyEmpty’: timeout
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
Remote replied unexpectedly to 'vMustReplyEmpty': timeout
Solution:
- Open two terminals
- Start ST-Link GDB Server
st-util -p 3333
- Inside the arm-none-eabi-gdb command, instead of “tar ext /dev/serial/by-id/” connect to the server, you can do this like this
target extended-remote :3333
- The remaining steps are the same. The only thing different on this page is the linking done in step 6.
`