Skip to main content
Associate
Jul 31, 2026 12:47 PM UTC
Solved

V2.23 CLI connection fail extremly slow on arm linux compared to windows

Dear STM Support Team,

the following CLI command takes about 30 seconds on a Raspberry Pi (thanks again btw!) compared to 1 second max on windows:

 

STM32_Programmer_CLI -c port=swd sn=xyz

 

I am using this in a loop to detect whether a MCU is connected.

All other commands i tried are comparable in speed to windows so i guess this is a bug.

The Pi is a Model 5 running Bookworm and a 6.12 kernel.

 

Thank you very much!

 

 

 

KouthairBest answer
ST Technical Moderator
Aug 26, 2026 2:56 PM UTC

Hello ​@JSF ,
You are also correct; there is a slight change in the timeout duration between v2.22 and v2.23.
This has also been reported by other users and currently under investigation by our development team. (Internal ticket ID: TPRG-9562)
I’ll let you know ASAP when the fix is live.

PS: Ticket ID: TPRG-9562 is an internal tracking number and is not accessible or usable by customers.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

6 replies

ST Technical Moderator
Aug 6, 2026 10:52 AM UTC

Hello ​@JSF ,
We are delighted to know that you are enjoying the new STM32CubeProgrammer RPI package!
However, I have tried connecting and performing some operations, but it works instantly.
Can you tell me which device you are using?

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
JSFAuthor
Associate
Aug 10, 2026 9:53 AM UTC

Hello ​@Kouthair ,

 

thank you for your reply.

 

I am using a Raspberry Pi 5 with the Linux 6.18.34+rpt-rpi-2712 Kernel and Raspberry Pi OS 64-bit (Trixie).

I just did a fresh install and tried it again, but connect still takes 30 seconds when there is no MCU connected.

Is there a way i can get you more information?

This is my current output:

 

~ $ STM32_Programmer_CLI -c port=swd sn=002D00503039510934393838
      -------------------------------------------------------------------
                        STM32CubeProgrammer v2.23.0                  
      -------------------------------------------------------------------

ST-LINK SN  : 002D00503039510934393838
ST-LINK FW  : V3J16M8B5S1
Board       : STLINK-V3SET
Voltage     : 0.00V
Error: Unable to get core ID
Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
2nd connect tentative with frequency (8MHz)
ST-LINK SN  : 002D00503039510934393838
ST-LINK FW  : V3J16M8B5S1
Board       : STLINK-V3SET
Voltage     : 0.00V
Error: Unable to get core ID
Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication

 

ST Technical Moderator
Aug 18, 2026 2:24 PM UTC

Hello again ​@JSF ,
The connection attempt taking 30 seconds is consistent across all platforms and is not specific to RPI package. It also takes the same amount of time in the Windows CubeProgrammer too.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
KouthairBest answer
ST Technical Moderator
Aug 26, 2026 2:56 PM UTC

Hello ​@JSF ,
You are also correct; there is a slight change in the timeout duration between v2.22 and v2.23.
This has also been reported by other users and currently under investigation by our development team. (Internal ticket ID: TPRG-9562)
I’ll let you know ASAP when the fix is live.

PS: Ticket ID: TPRG-9562 is an internal tracking number and is not accessible or usable by customers.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
JSFAuthor
Associate
Aug 26, 2026 3:09 PM UTC

Thank you very much!

An other unrelated question: Is a C++ API planned for the Raspberry Pi?