Skip to main content
Aug 10, 2020 5:52 PM UTC
Question

[BUG] St-Link is not detected after installing STM32CubeIDE V 1.4.0.

I was normally using STM32CubeIDE V 1.3.0 and St-Link was working.

The St-Link firmware is updated.

The St-Link Utility (V 4.4.0.0 and V 4.5.0.0) finds and connects to the St-Link correctly.

Whenever a new IDE version becomes available, will the user have to ask for help to make St-Link work? :|

Can the IDE itself update St-Link? (Or at least report the problem correctly?)

This topic has been closed for replies.

16 replies

Cartu38 OpenDev
Graduate II
Aug 11, 2020 8:04 AM UTC

Help > Check for Updates ... STM32CubeIDE 1.4.1 is solving trouble.​

Aug 12, 2020 4:13 AM UTC

Thanks, this update I did right after installation. Still not working.

HPham.1590
Associate III
Aug 12, 2020 7:30 AM UTC

Hi,

As my experience, I got the same issue when update from 1.3 to 1.4 version.

In CubeIDE 1.4, we need to install STM32Cube Programmer, I'm not sure but I think CubeIDE1.4 use Cube Programmer as default software to run task.

You can download this software here https://www.st.com/en/development-tools/stm32cubeprog.html

Hieu

Aug 12, 2020 10:26 AM UTC

Thank you, I saw your answer just now. I had already downloaded CubeMX and Prog, it really worked. What a pity, too bad, making an IDE of this size but depends on other software.

HPham.1590
Associate III
Aug 12, 2020 10:39 AM UTC

Cube is an ST's Ecosystem, it includes CubeIDE, CubeMX and CubeProgrammer, so I think that's business strategy =)))

Hieu

Aug 12, 2020 10:53 AM UTC

I did some tests (following the order quoted, in sequence):

  • After installing STM32CubeIDE 1.4, ST-Link V2 did not work (as mentioned above).
  • After installing STM32CubeMX 6.0, STM32CubeIDE 1.4 worked with ST-Link V2 (as already mentioned above).
  • After uninstalling STM32CubeMX 6.0, STM32CubeIDE 1.4 continued to work with ST-Link V2.
  • After uninstalling STM32CubeIDE 1.4 and installing STM32CubeIDE 1.4 again, ST-Link V2 stopped working.
  • After installing STM32CubeMX 6.0, STM32CubeIDE 1.4 still did not work with ST-Link V2.
  • After installing STM32CubeProgrammer 2.5, STM32CubeIDE 1.4 still did not work with ST-Link V2.

So it's not just that yet. I did something else.

Aug 12, 2020 12:36 PM UTC

And it still doesn't work.

I found another post with several users with the same problem:

Some say it is a matter of using HUB, but it has nothing to do with it, since version 1.3 works without problems.

https://community.st.com/s/question/0D53W00000Di9H7SAJ/stlink-not-found-when-debugging-with-stm32cubeide-140

Aug 12, 2020 1:04 PM UTC

I found another post, citing OpenOCD.

https://community.st.com/s/question/0D50X0000BVnlm0/debugger-not-working-after-upgrade-to-stm32cubeide-110

I tried and worked the ST-Link with OpenOCD.

It seems to be a problem with GDB Server, it seems that IDE 1.4 does not work properly with GDB Server.

Download pre-built OpenOCD for Windows:

https://gnutoolchains.com/arm-eabi/openocd/

Hchao.1
Visitor II
Aug 19, 2020 2:21 AM UTC

C:\ST\STM32CubeIDE_1.3.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_1.3.0.202002181050\tools\bin>ST-LINK_gdbserver.exe -d -v -e -cp "C:\ST\STM32CubeIDE_1.3.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_1.3.0.202002181050\tools\bin"

use this command ,it works fine.just run the bat file,and then can debug as normal.

Hchao.1
Visitor II
Aug 19, 2020 2:27 AM UTC

0693W000003PhrAQAS.png0693W000003Phr5QAC.png0693W000003Phr0QAC.png0693W000003PhqvQAC.png

Aug 19, 2020 3:09 AM UTC

I think version 1.4 is different, it doesn't have all these files.

Hchao.1
Visitor II
Aug 19, 2020 5:35 AM UTC

you can install v1.3.0, then update to 1.4.2