Skip to main content
PChat.4
Associate II
March 6, 2025
Solved

Arm64 with Snapdragon X plus process unable to detect st link

  • March 6, 2025
  • 6 replies
  • 2929 views

I bought an arm64 based PC a few months ago and I have been unable to connect to or detect stlink even after installing driver, is there a work around? has anyone successfully been able to use the snapdragon processor with stlink? is there another kind of debugger that works with arm based pc's? your help will be highly appreciated, thanks

Best answer by SNish

Dear PChat.4
I had faced similar things and now I can debug on X-ELITE note with ST-LINK/V2(NULCEO F446).
You can install ST-LINK device driver as WinUSB ( It is bundled in Windows11 ).
And you should set OpenOCD setting in CubeIDE debugger . ( It is bundled in CubeIDE ).
Current limitation: It cannot update firmware of ST-LINK/V2.
Please take look screenshots.

6 replies

Andrew Neil
Super User
March 6, 2025

What OS are you running on this PC ?

 


@PChat.4 wrote:

 I have been unable to connect to or detect stlink 


You mean it doesn't even show up in Device Manager (or equivalent) ?

 

Have you seen this:

https://community.st.com/t5/stm32-mcus/faq-possible-communication-failure-between-stlink-v3-and-some/ta-p/736578

 

Also:

https://community.st.com/t5/stm32-mcus/how-to-solve-debugger-connection-issues/tac-p/698105/highlight/true#M956

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
PChat.4
PChat.4Author
Associate II
March 7, 2025

Yeah it doesn't even show up but when I use my old version of PC with an AMD processor it detects the stlink is seconds, is it because arm based pc's are not designed to work with stlink?

 

Ozone
Principal
March 7, 2025

>... is it because arm based pc's are not designed to work with stlink?

USB is just USB, a serial protocol.
You can try lsusb, and check that your ARM64 device at least lists it.

OpenOCD should come with drivers, and should be available as installable package.
Using Debian/Ubuntu, that would be via apt-get. Other distros user other package management tools.

At least worth a try.

Ozone
Principal
March 6, 2025

OpenOCD is available for Linux, and supports the ST-Link.
I'm pretty sure ARM/ARM64 repositories of most distros provide packages.

As far as Windows for ARM is concerned, you will probably depend on ST to release appropriate drivers.

PChat.4
PChat.4Author
Associate II
March 7, 2025

Totally true I guess my arm pc is useless for debugging hardware

Andrew Neil
Super User
March 10, 2025

Do you have ST-Link v2 or v3 ?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
PChat.4
PChat.4Author
Associate II
March 14, 2025

To my surprise I connected the stlink to my arm64 snapdragon processor it worked like a champ, I don't know how but it works now after struggling for 3 months hahahahahahaha

Andrew Neil
Super User
March 14, 2025

Had Windows done an update?

As previously noted, other connected devices can affect this - so maybe it just happened that you hit the "right" combination ...

But, if it's fixed now, you can mark the solution:

https://community.st.com/t5/community-guidelines/help-others-to-solve-their-issues/ta-p/575256

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
PChat.4
PChat.4Author
Associate II
March 14, 2025

After a few tries my arm64 PC can detect and connect to stlink, but sometimes while debugging using stm32cubeide the software just suddenly freezes, what could be causing this?

PChat4_0-1741942903445.png

 

Pavel A.
Super User
March 16, 2025

sometimes while debugging using stm32cubeide the software just suddenly freezes, what could be causing this?

Imagine that someone else asked you this question.

* Do you have enough information to answer?

* What would you tell that person?

 

SNish
SNishBest answer
Associate II
July 8, 2025

Dear PChat.4
I had faced similar things and now I can debug on X-ELITE note with ST-LINK/V2(NULCEO F446).
You can install ST-LINK device driver as WinUSB ( It is bundled in Windows11 ).
And you should set OpenOCD setting in CubeIDE debugger . ( It is bundled in CubeIDE ).
Current limitation: It cannot update firmware of ST-LINK/V2.
Please take look screenshots.

SNish
Associate II
July 8, 2025

Hello PChat.4
Sorry I have misread of your issue.
You are facing fault of CubeProgrammer case.
It may not solve on my method.
Sorry