How to remote debug STM32 code with gdb using stlink-tools on linux? #1361
-
On linux, using The code is built on host (x86 PC) with debug flag using
Then stripped to reduce the size of the binary:
Then the reduced binary is flashed to the STM32 board using STM tools:
Then running in one terminal gdbserver:
And in another terminal, running (note using .elf on host with debug symbols and .bin on target without symbol as it's supposes to work this way according to a doc I read somewhere):
Symbols seems to screwed EDIT On host:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
As far as I can see the steps taken are not wrong. I suggest to try it out along with example code/binaries from the web and to go through the procedure again. |
Beta Was this translation helpful? Give feedback.
As far as I can see the steps taken are not wrong. I suggest to try it out along with example code/binaries from the web and to go through the procedure again.
I'm sorry to say that we can not provide support or any specific documentation for external tools apart from our limited coverage on general use with the
stlink
toolset in ourtutorial.md
to be found in/doc
. Consulting thegdb
project on the use of the related tool instead may be a good idea. I believe there already is extensive content generally available regarding debugging withgdb
.