cancel
Showing results for 
Search instead for 
Did you mean: 

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

GSMAN.1
Associate II

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.

4 REPLIES 4
Uwe Bonnes
Principal II

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

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

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.

hi, sorry for late reply,

I will try that thx.