Skip to main content
Tobe
Senior III
March 13, 2024
Solved

Getting ST-LINK-V3 MODS to run after previous used of nucleoboards.

  • March 13, 2024
  • 6 replies
  • 6972 views

Hi,

i was hoping, that the Link-V3 would just work, after i used nucleo boards already. But i was dissapointed. I use the GDB server, and it says:

ST-Link enumeration failed

Error in initializing ST-LINK device.
Reason: ST-LINK DLL error.

I just checked a Nucleo board, and there is no problem.

The installation of the driver worked without errors.

 

 

Best answer by Tobe

IT WORKS!

While trying many things, i disconnectes NRST. But i still can program the target.

I had to enter the frequency in the gdb server comman line!

6 replies

TDK
Super User
March 13, 2024

Can you connect with STM32CubeProgrammer? If not, at which stage does it fail? Does the ST-link show its serial number? Does the target voltage show up and is it valid?

Since this is custom hardware, was it ever working correctly or is this a first try? Does it have power, are pins connected correctly, is VCAP correct, etc?

"If you feel a post has answered your question, please click ""Accept as Solution""."
Tobe
TobeAuthor
Senior III
March 13, 2024

It now works. I think i may have to turn / plugin the cables in a certain order.

But i now have this Error:

Error message from debugger back end:
Error finishing flash operation
Error finishing flash operation

TDK
Super User
March 13, 2024

I asked 6 questions, you answered 0 of them. If you want help by me, you're going to have to pitch in a bit more.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Tobe
TobeAuthor
Senior III
March 14, 2024

I have now made more measurements:

The signal have the right levels without a T_VCC connection.

 

Tobe
TobeAuthor
Senior III
March 14, 2024

Too bad you only can post 3 images...

Tobe
TobeAuthor
Senior III
March 14, 2024

This is how i start the GDB server:

ST-LINK_gdbserver.exe -p 6100 -l 0 -d -s -cp D:\...\tools\bin -m 0 -g
start "" STM32_Programmer_CLI.exe -c port=SWD mode=NORMAL reset=HWrst

See the settings for eclipse attached.

Tobe
TobeAuthor
Senior III
March 14, 2024

I now managed to get some connection to my board. I used the Cubeprogrammer GUI, and have to set 1000kHz or lower. But still it does not work with the CLI, allthough it there set 1000kHz too.

Tobe
TobeAuthorAnswer
Senior III
March 14, 2024

IT WORKS!

While trying many things, i disconnectes NRST. But i still can program the target.

I had to enter the frequency in the gdb server comman line!