Skip to main content
Visitor II
May 30, 2019
Question

ST-Link V2 DLL Error in STM32CubeIDE

  • May 30, 2019
  • 1 reply
  • 1714 views

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.

    This topic has been closed for replies.

    1 reply

    Visitor II
    May 17, 2022

    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