cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO-F411RE ST-Link Driver Install Fails on Windows (Code 28)

JThompson
Visitor

Hi everyone, 

I am having trouble getting my STM32 NUCLEO - F411RE setup. When I attempt to run a simple program through CubeIDE I am met with "NO ST-LINK detected! Please connect ST-LINK and restart the debug session." It also returns the same error when I attempt to run other programs.

Here's what I have tried thus far : 
     - In my Device Manager I can see "ST-Link Debug" which has the status: "The drivers for this device are not installed. (Code 28) There are no compatible drivers for this device. To find a driver for this device, click Update Driver." I've tried both the "search automatically for drivers" and "Browse my computer for drivers" (using C:\Users\jthom\OneDrive\Desktop\stsw-link009\amd64), however both have thus far failed.
     - Restarted computer multiple times

     - I've installed CubeProgrammer however when I attempt to connect ST-LINK through there I am met with: "Error: Problem occured while trying to connect" 
     - I've attempted to install the ST-Link drivers manually (downloading and using stsw-link009) running dpinst_amd64 as an administrator (since the stlink_winusb_install failed and told me to use it) but the device wizard is unable to install any of the software (see screenshot). 
    

Is this likely a Windows ARM driver compatibility issue? My USB is this. My processor is a Snapdragon X processor and an ARM64-based PC.

Apologies if this is a basic question. This is my first experience setting up STM32 firmware and I couldn't find a similar thread already open. 

1 REPLY 1
Karl Yamashita
Principal

This is what Google search brings up

 

 

STM32CubeIDE is not officially supported natively on ARM-based PCs (such as Windows on ARM/Snapdragon or Linux on ARM/Raspberry Pi). The official STMicroelectronics tools are compiled exclusively for x86_64 architecture. [1, 2, 3]
However, there are a couple of workarounds to get you running:
  • Emulation/Translation (Windows on ARM): You can install it on Windows on ARM using the OS's built-in x86 translation, but it is generally very slow. Additionally, native ST-Link drivers currently fail to install on Windows on ARM due to unsigned driver limitations, which prevents flashing.
  • Virtual Machine (macOS Apple Silicon): If you are on an M-Series Mac, you can run an x86 virtual machine (like UTM or Parallels) to emulate Windows or Linux and run the IDE there.
  • Visual Studio Code (Native Solution): For native ARM performance, developers often use VS Code with the C/C++ extension, the STM32-for-VSCode extension, and an open-source toolchain (like GCC Arm Embedded). [1, 2, 3, 4]
If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.
CAN Jammer an open source CAN bus hacking tool
CANableV3 Open Source