2024-04-04 03:48 AM
Yesterday (03-04-2024) the debugger was running out of the box on the STM32H735G development kit. Today the IDE seems not to start the gdb server at all when starting the debugger the following error is prompted:
These are the settings:
I already tried the following things:
Any suggestions how to fix debugging with "Autostart local GDB server" ?
2024-04-04 04:47 AM
Hello @gerbenp and welcome to the community,
To solve this problem, you can do an st-link upgrade and then change the port to 61238 in the debug configuration.
Hope this helps!
Thanks,
Rim
2024-04-04 05:02 AM - edited 2024-04-04 05:10 AM
Hi Rim!
Thank you for your quick response!
Maybe good to mention that yesterday I already sucessfully updated to the latest version of ST-Link as prompted by the IDE (probably when started debugging). It worked perfectly throughout the whole day (did not reboot the PC).
Anyhow, I followed your instruction and downloaded the ST-link upgrade from: https://www.st.com/en/development-tools/stsw-link007.html?dl=redirect . I started the ST-LinkUpgrade.exe tool and the current version match the "Upgrade to Firmware" field:
Ran it again with MCO output to (HSI/2 (8MHz)) and got the following response:
Then I set the port to the proposed port 61238:
Unfortenately, the error (No ST-LINK detected! Please connect ST-LINK and restart the debug session) still remains:
Any more suggestions?
2024-04-05 01:29 AM
Today I got new insights.
I started this project at my home with a Dell 6-in-1 MultiPort adapter attached to my laptop (since there is only usb-C available on my laptop) enabling the internet/LAN connection and ST-Link connection. This descibes the setup that was working via the "Autostart local GDB server".
When I tried to start this project at work while connected to the docking-station, the "Autostart local GDB server" didn't work. Today I had the idea to bring things back to the original (home) situation at work. See picture below:
Bringing it back to the original setup sovled the issue because the debugger started with "Autostart local GDB server"! Might it be caused by the network-adapter? Can this be set somewhere in a config-file?