cancel
Showing results for 
Search instead for 
Did you mean: 

ST-Link V2 DLL Error in STM32CubeIDE

Adam Mitchell
Associate II

Hi there,

I'm trying to debug an application running on a custom board with an STM32L073RZ on board. I can connect to the board and programme it using both STM32 ST-Link Utility and STM32CubeProgrammer. I'm using a JTAG to SWD adapter board.

However, when attempting to debug from with STM32CubeIDE I receive the following error:

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

Any insight as to this issue would be greatly appreciated.

1 REPLY 1
tufftuff
Associate

Hi,

I had the same Error, I tried many things and in the end it worked. I am not sure what helped, but I think it could be the Port where the STLINK-Server was trying to communicate. I changed it to a random number above 50000 under RunbuttonDropdown -> Run Configurations -> Debugger -> Port Number: 51840. I will try to test this on another machine where the error occurred too. (As a note: I am using Linux, I am not sure whether this was an Linux specific issue in the first place)

Best wishes, tufftuff