cancel
Showing results for 
Search instead for 
Did you mean: 

I am using STM32CubeIDE with Nucleo - H743ZI2 trying to program ADC and DAC with SysTick timing. C code compiled without errors. Upon debug, error message ST-LINK not detected. It worked previously. Please help.

LStar.1
Associate II
 
6 REPLIES 6
TDK
Guru

If ST-Link is not detected, ensure it's powered correctly. Ensure it's not in use by another application. Power cycle the board. Try a different cable. Try a different board. Reboot. Try a different computer. The typical troubleshooting things.

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

Did you update STM32CubeIde to v1.4.0 ?

Try to use the STM32CubeIde v1.4.0 installer to have the STLink server installed and then update to the latest STM32CubeIDe version v1.4.2.

There has been some cases with issue on USB Hub port and STLink are not detected.

If after a fresh install, you still have the same issue, you can try to patch the libusb dll v1.0.23 in STLink server install folder.

libusb v1.0.23 can be found here https://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.23/libusb-1.0.23.7z/download

Unzip and copy the libusb-1.0.dll found in the libusb-1.0.23.7z\MinGW32\dll folder and patch it in C:\Program Files (x86)\STMicroelectronics\stlink_server folder.

If you are using Openocd, you should also patch the dll in CubeIde 1.4.0 plugin in : STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.openocd.win32_1.4.0......\tools\bin

Rgds,

Laurent

Not sure if this is the proper way to reply. My Cube IDE is still v1.4.0. I reinstalled about 30 minutes ago but bypassed the STLink server because the instructions said is was only needed when using a probe. I will reinstall and include the STLink server.
Could this possibly explain the problem I have with the tiny font size when using CodeIDE to configure the clock/pins/peripherals?
Larry

Yes, as previously said, you must install STLink server to be able to detect STLink and upgrade its firmware if needed.

For the tiny font size, I suppose you're using a 4K display and it is not in relation to debug.

On Windows, you can change the STM32CubeIde shortcut properties and in Compatibility pane, change "high DPI setttings" to "Override high DPI scaling behavior" in the bottom and set Scaling performed by "System".

I have a 4K display and choosing "System (Enhanced)" is even better (no blur on characters).

The change to the compatibility settings on the IDE shortcut worked perfectly! I suppose it was fate that you, LaurentL answered the question from your English namesake Lawrence, but I am grateful. There are several posts to be found on the internet asking for help on this problem. Yours is the only one that has worked.

Larry