3

I tried to run a program on STM32L552ZET6Q MCU. I use STM32CubeIDE for writing programs, ST-LINK (ST-LINK GDB server) as debug probe and SWD interface.

I successfully compiled the program, but while debugging, I got the following error:

    Failed to execute MI command:
    target remote localhost:61234

    Error message from debugger back end:
    localhost:61234: Connection timed out.
    Failed to execute MI command:
    target remote localhost:61234

    Error message from debugger back end:
    localhost:61234: Connection timed out.
    localhost:61234: Connection timed out.

I tried to resolve the issue with various suggestions on the web, but I could not solve it. Please, help me with this.

Rohit
  • 41
  • 1
  • 8

2 Answers2

0

STM32CubeIDE -> Run -> Run Configurations... -> on the left select your config, then -> Debugger -> Reset behaviour -> Type: Connect under reset

This is what worked for me. I also experienced the same problem and couldn't find a solution. After a while I noticed that I could write the FLASH of the chip once after using the STM32CubeProgrammer to completely erase the FLASH of the chip - this suggested that the Watchdog Timer might be the culprit.

0

What I did and worked again and again is to unplug wires that have output Voltage , for example 3.3V.

More specific I wanted a communication between nucleo and arduino, where arduino detects if the nucleo is powered up, by detecting output 3.3V. When I unplug this wire upload works perfect otherwise this message appears.