2024-09-30 10:06 PM
ST-LINK_gdbserver has been a very important part of my Arduino development with ST micros. I've used it extensively with the STM32L071 and am wanting to use it with the STMU073. But I need to upgrade it for the newer micro. So I've upgraded my CubeMX and my CubeProgrammer.
However, ST-LINK_gdbserver is nowhere to be found! Could someone please tell me where to find it? I've looked everywhere (I think) and done lots of searching. Any help would be appreciated!
TIA
Solved! Go to Solution.
2024-10-01 03:33 AM
Hello @doctek
First let me thank you for posting.
The STM32CubeMX does not contain the GDB server as it is only generating the code.
The GDB server is part of STM32CubeIDE tool. It could be found under the plugin folder in the STM32CubeIDE installation repository.
KR,
Semer.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-10-01 03:33 AM
Hello @doctek
First let me thank you for posting.
The STM32CubeMX does not contain the GDB server as it is only generating the code.
The GDB server is part of STM32CubeIDE tool. It could be found under the plugin folder in the STM32CubeIDE installation repository.
KR,
Semer.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-10-02 09:25 AM
Thank you for your response. I have installed version 1.60 of STM32CubeIDE (version 1.61 is not available for Ubuntu 24.04) and I find com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.linux64_2.1.400.202404281720 in the plugins. I think this is what I'm after. Can you verify?
Thank you.
2024-10-02 09:38 AM
That was actually a *** question. Sorry! In that directory is tools/bin and in there is ST-LINK_gdbserver.
Thank you!
2024-10-02 09:22 PM
So my problem is *almost* solved. I found the ST-LINK_gdbserver, moved it and the associated files to the bin directory that contains STM32CubeProgrammer and tried to run it using:
./ST-LINK_gdbserver --verify -c config.txt -cp . "$@"
I've done this process with an earlier version of of the ST-LINK_gdbserver and it worked perfectly.
But now I get the followintg error:
./ST-LINK_gdbserver: error while loading shared libraries: libSTLinkUSBDriver.so: cannot open shared object file: No such file or directory
So some part of the ST-LINK_gdbserver is still missing. Can you tell me where to find it? This is a tool I use regularly and I need to fix it.
Thank you so much and I apologize if I've missed something obvious.
2024-10-02 10:00 PM
OK! I found it! (Again, I should have looked harder before asking for help!) The directory named Native must accompany ST-LINK_gdbserver. With that directory in the bin, the gdbserver works!. I haven't verified that it will work with my ST-LINK hardware, but that will be another problem.
Thanks for your help and patience with my fumbling!