Skip to main content
PKale.1
Associate II
August 6, 2022
Question

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

  • August 6, 2022
  • 3 replies
  • 1747 views

Failed to execute MI command:

target remote localhost:61234

Error message from debugger back end:

localhost:61234: Connection timed out.

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
August 6, 2022

Check connectivity and erase with STM32 Cube Programmer directly.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
PKale.1
PKale.1Author
Associate II
August 6, 2022

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?

Tesla DeLorean
Guru
August 6, 2022

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 VenmoUp vote any posts that you find helpful, it shows what's working..
S.Ma
Principal
August 6, 2022

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.

PKale.1
PKale.1Author
Associate II
August 6, 2022

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 III
August 6, 2022

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.

PKale.1
PKale.1Author
Associate II
August 6, 2022

Thank you. You awakened my sleeping brain.