Skip to main content
GSMAN.1
Associate
Mar 15, 2020 10:40 AM UTC
Question

Problem with STM32 cube IDE : error 4 no device found on target

Hello,

I try to launch my code on my STM32 board with cube IDE but I have the next error :

///////////////////////////////////////////////////////////////

Error in final launch sequence:

Failed to start GDB server

Failed to start GDB server

Error in initializing ST-LINK device.

Reason: (4) No device found on target.

///////////////////////////////////////////////////////////////

I am in version 1.3.0, I made the ST-LINK update.

I saw on lot of forum but the solutions I found didn't works for me.

I tried to reset ship with ST-LINK utility, to switch USB port, to update ST-LINK without firewall...

Have you some ideas please ?

Cordially.

This topic has been closed for replies.

4 replies

Uwe Bonnes
Chief
Mar 15, 2020 11:56 AM UTC

What debugger? What device? Did you try connect under reset?

GSMAN.1
GSMAN.1Author
Associate
Mar 15, 2020 12:04 PM UTC

The debugger is STM32 CORTEX-M, on STM32L152RE device and yes I tried to connect under reset.

Thanks for your answer

PMath.4
Senior III
Mar 16, 2020 8:49 AM UTC

I've seen same a couple of times. The only way out I found was to run CubeProgrammer and connect using DFU then do a full erase of the chip. Even from CubeProgrammer connecting via ST-LINK didn't work I had to use DFU. After the full erase all worked properly again.

GSMAN.1
GSMAN.1Author
Associate
Mar 20, 2020 12:29 PM UTC

hi, sorry for late reply,

I will try that thx.