cancel
Showing results for 
Search instead for 
Did you mean: 

Cube IDE 1.16.0 and STlink v3 - cannot find debugger

PHolt.1
Senior III

This sort of thing is a way of life with these ST tools (been using Cube IDE for 6 years on this project) but this one I am unable to fix. Is there some special setting needed under Debug (under project/properties)?

 

PHolt1_0-1721987017824.png

 

 

STMicroelectronics ST-LINK GDB server. Version 7.8.0

Copyright (c) 2024, STMicroelectronics. All rights reserved.

 

Starting server with the following options:

Persistent Mode : Disabled

Logging Level : 1

Listen Port Number : 61234

Status Refresh Delay : 15s

Verbose Mode : Disabled

SWD Debug : Enabled

 

ST-LINK device status: UNKNOWN

Waiting for debugger connection...

Debugger connected

Waiting for debugger connection...

Debugger connected

Waiting for debugger connection...

Encountered Error when opening C:\ST\STM32CubeIDE_1.16.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.400.202404281720\tools\bin\STM32_Programmer_CLI.exe

Error in STM32CubeProgrammer

Shutting down...

Exit.

 

PHolt1_1-1721987204042.png

I've tried 2 x STLINK ISOL V3 and a STLINK ISOL v2. No success.

28 REPLIES 28
PHolt.1
Senior III

Zero replies.

Is there really no way to debug this very common scenario?

zero + 1 . :)

So you had it working for years...what you changed, to stop it ?

see my setting :

AScha3_0-1722499107025.png

Try...(software reset  ! )

 

 

If you feel a post has answered your question, please click "Accept as Solution".
PHolt.1
Senior III

No; my point is that 1.16.0 broke it. I had been working with Cube IDE for several years, all the various versions.

 

I see you are using OpenOCD. I've always used GDB Server mode. The others didn't seem to work. Which STLINK are you running?

 

Here i am on IDE V 1.14.1 .  (working fine - so why i should risk any "update" to unknown state ?? :) )

+ blocking all online/update search etc. -> offline mode seems helping a to keep stable workset .

(If v 16... dont work, just use older Version and see next update for V16.. , maybe then ok again)

+

ST-links i use : V3-miniE , V3-mods , V2  (the "clones" , but all with STM chips..) ;

and also GDB and OCD ...sometimes one not working, so i choose the other. ...and back.

If you feel a post has answered your question, please click "Accept as Solution".
PHolt.1
Senior III

Right - I too froze updates on 1.14.1 and disabled looking for updates. 

Not really a solution though :beaming_face_with_smiling_eyes:

I have the same problem. I use STM32 CUBE IDE V1.16 and ST-LINK/V2. I could not solve the problem.

 

screen_20240801_095042.bmp

Boris19
Associate III

I have the same problem with both the V1.14 and V1.16 versions.

I use the STLINK-V3MINI and my OS is Windows 11.

I should point out that everything was working 4 months ago.....

I couldn't solve the problem !

MESSAGE:

Boris19_1-1724091102953.png

STM32 CubeIDE:

Boris19_2-1724091235412.png

I really need a solution to move my project forward!

 

What you set for connecting mode?

Try: hardware reset, + under reset.

That's helpful, if you did anything to set the chip to a mode, that not allows normal access, maybe not set debug in Cube or using a debug pin for any other way, as I/o pin or so.

 

If you feel a post has answered your question, please click "Accept as Solution".

Hi @AScha.3 , thank you for your reply.
I'm not sure I understand your question.
My hardware connection mode is configured like this:

Boris19_0-1724138229270.png

Then I use a basic USB cable.
This setup has always worked correctly.


The BOOT0 pin is connected to GND.
My DEBUG configuration is done like this:

Boris19_1-1724138327603.png

I also updated the STLINK-V3MINI and did a ‘clean’ of the project.

I also want to say that I managed to flash the MCU the very first time with my programme, but then it wasn't possible any more.