2025-12-25 5:22 AM
Dear community supporters,
I would like to add ability to share STM32 projects platforms to my team. I have setup a server on Debian 13 and setup the STLink server tool, and using a SSH tunnel to do port forwarding from the attached STLink port on the linux server (localhost:7184) to a Windows client machine where I plan to use the STM32 Cube IDE, STM32 Cube Programmer.
The tunnel is operational, and I have added a wireshark capture showing discussion from my Windows client when using the STM32 Cube Programmer, and a log from a STM32 Cube IDE debug configuration. For both, the Shared STLink is ticked, and in STM32 Cube IDE, I am able to see (the snapshot STM32 Cube IDE Debug Configuration.png shows it) the STLink SN from my remote STM32 Nucleo board attached to my linux server. Though, the STM32 Cube Programmer is unable to show the SN, seems it is unable to detect the probe devices, as shown in the st-link_gdbserver_log when starting the debug session.
It seems the STM32Cube Programmer is causing the issue when the stlink_server remote port forwarding is active, and gives the error 'Error: No debug probe detected.'. It seems the GDB session does take in consideration the STLink server, but the STM32Cube Programmer error indicates where it stops.
Is someone from ST could shed some light on this issue and comment on my notes, thanking them by advance
Best regards,
Emmanuel POITIER
2025-12-28 12:03 AM
Hello @Emmanuel_POITIER_Enman
Verify correct driver installation in Device Manager and that are up to date.
Ensure no other application is blocking access to the ST-LINK.
Try with another USB cable. Shut down the GDB server and any client attached to the server. Then power off the target board. Disconnect, then reconnect the ST-LINK JTAG USB cable. Power on the target board and restart the GDB server, preferably using a different port number.
2025-12-28 1:00 AM
I mean only CLI programmer can do remote connect. And FYI server is too on windows, debian not required...
2025-12-28 10:20 AM
Hi MM..1,
not sure what you mean, but if STM gives a STLink Server on Linux, I believe running the STLink Server on Linux would not involve anything on Windows. Please refine your thought.
Best regards,
Emmanuel POITIER
2025-12-28 10:23 AM
Hello @Imen.D ,
> Verify correct driver installation in Device Manager and that are up to date.
the driver would be on the debian server, when using STM Cube IDE on the linux server, everything is working.
> Ensure no other application is blocking access to the ST-LINK.
The STLink Server is working and no other applications are run to use it on the debian server
> Try with another USB cable. Shut down the GDB server and any client attached to the server. Then power off the target board. Disconnect, then reconnect the ST-LINK JTAG USB cable. Power on the target board and restart the GDB server, preferably using a different port number.
When using the STM32Programmer (graphi based or the cli version), is the GDB server would be used ? I believe it will only be used for a debug session, isn't it ?
Best regards,
Emmanuel Poitier