cancel
Showing results for 
Search instead for 
Did you mean: 

I have been using Nucleo 64 - STM32G474RET board for a while. But I suddenly started getting error while flashing the code, Not sure what is happening.. Please help

PKale.1
Associate II

Failed to execute MI command:

target remote localhost:61234

Error message from debugger back end:

localhost:61234: Connection timed out.

8 REPLIES 8

Check connectivity and erase with STM32 Cube Programmer directly.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
S.Ma
Principal

Debugger can t connect for multiple reasons. Low power clock stop mode being one of them. Use bootloadder boot pin to check this point. Emulating eeprom in flash with a bugged code that massively erase could wear and tear the memory is another.

Thank you. I checked, connectivity is okay. Board is getting flashed with STM32 Cube programmer ( invoked if select Autostart local GDB server) but not directly using from ST-LINK. 0693W00000QN6xxQAD.pngDoes this help in bringing more clarity to my issue?

Thank you but the code is of few lines, basic GPIO toggle and I did not have any wires connected to nucleo board apart from usb cable. Board is surely not in low power mode.

MM..1
Chief II

On your image is selected remote GDB , this result your system try connect to network debuger.

I use this for Cube on one PC and device with stlink 10km remote on next PC,

You maybe missunderstand image , for normal local debug you need upper choice Autostart.

Not really.

Isn't the server on the local (this) machine?

Anything that's causing the remote server not to start, or be blocked? Say AV software change recently.

Try and think what changed between the time that it worked, and when it stopped working.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Thank you. You awakened my sleeping brain.

Well, my silly brain....:(.

I think somewhere along, I inadvertently changed my default setting to "Connect to remote GDB server" and was thinking it as the default setting. But thanks to all of you, my brain came out of sleep and all good now.

My bad for posting a very silly mistake of mine as an issue.

thanks everyone!