2022-02-08 07:05 AM
Hello,
I have a Nucleo L476RG development board which I would like to remotely debug from a local PC which is running windows 11.
I have connected the nucleo board to a linux machine (Ubuntu) and have started the ST-LINK_gdbserver application from /opt/st/stm32cubeide_1.7.0/plugins/com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.linux64_2.0.0.202105311346/tools/bin/
After I run the application the terminal window shows the following information.
The stm32Cube IDE is running on the local pc(windows) which is connected to the network. The debug configurations is configured as follows
When I try to debug the application the following screens appear
Can you help me to solve this issue or can you provide me with a solution for remotely debuging the application from another PC on the local network?
Solved! Go to Solution.
2022-03-01 02:15 AM
We solved the issue by disabling the "Live expressions". For some reason the live data channel is timing out on this machine.
The lesson learned: Even if Live expression times out, it should not be allowed to kill the whole debug session. It should instead only warn that it suffered a timeout and that the feature will be unavailable.
Internal ticket reference: 123647
2022-02-08 08:48 PM
I have tried the same replacing the UBUNTU with an windows pc and running the ST-LINKservergdb.exe. Now I am able to debug the code. Does this bring any direction to the issue with the OS being used.
How can it be used on an Linux distribution?
2022-02-10 03:44 AM
Hi,
We have not been able to reproduce the problem. GDB-server version 5.9.1 running on a Ubuntu machine and CubeIDE version 1.7.0 running on Windows.
Can you test the following:
This is just to rule out any portability issues in case the debug settings moved between different platforms.
If still not working. Can you provide some more logging information:
This console should output all communication between the IDE and the GDB-server. Can you provide the output?
2022-02-10 09:08 PM
2022-02-11 12:26 AM
The connection seem to work well which contradicts the initial error dialog you received with Failed to execute MI command: target remote...
Can we do a screen share session? Drop me a PM and we can have a look...
2022-02-14 02:22 AM
Hi,
Just an idea. Might be related to network latency. Test to increase the "Remote timeout" setting. Available under:
"Window->Preferences->C/C++->Debug->GDB"
Default GDB timeout is 2s. Test to set it to 10s.
2022-02-16 02:09 AM
We have now managed to reproduce this error message in cases when the network communication (server responses) is really slow.
In addition to the reply by @Community member, you could also try to increase the debugger maximum connection time limit. Currently there is no UI option for this but a workaround is to add the attached two file to the project root folder. This will increase this time limit from 15s to 30s.
This might solve the problem but the interesting question is why its so slow in the first place?
2022-03-01 02:15 AM
We solved the issue by disabling the "Live expressions". For some reason the live data channel is timing out on this machine.
The lesson learned: Even if Live expression times out, it should not be allowed to kill the whole debug session. It should instead only warn that it suffered a timeout and that the feature will be unavailable.
Internal ticket reference: 123647