Skip to main content
Associate
September 27, 2024
Question

STM32 Cube Programmer CLI - Device Listing Command Bug

  • September 27, 2024
  • 1 reply
  • 1210 views

Hi,

I have been trying to integrate JLINK-SWD, USART, FDCAN and USB DFU interfaces for Open Bootloader for STM32G473 Device, with the STM_Programmer_CLI.exe on Windows (Latest - V2.17.0 64-Bit)  and when I prompt to list out the communication interfaces available below are the observations:

 

1. In case there is no ST-Link Device Connected, there is no listing of the UART Ports. (as show below)

Figure 1 - UART Ports not listed - No ST-Link ConnectedFigure 1 - UART Ports not listed - No ST-Link Connected

COM3 is detected in Device Manager - 

UART COM Port detected on device managerUART COM Port detected on device manager

2. In case there is ST-Link Device Connected, then the UART Ports are listed.

MRKIV_2-1727447379043.png

 

3.This issue is not present in the STM32 Cube Programmer GUI, on refresh the UART Ports update in the GUI Drop-Down.

MRKIV_4-1727447532652.png

4. With V2.13.0 the issue still persisted same as earlier.

V2.13.0 LogV2.13.0 Log

 

5. In order to verify the issue, installed STM32 Cube Programmer (V2.6.0). And in this version the issue is not present, But since it is an older version I am assuming that the J-Link Interface features are not integrated (J-Link Devices were not listed).   

MRKIV_6-1727449657666.png

 

For the time being making do with the work-around of connecting ST-LINKV2 in parallel with the UART devices and also hard-coding the COM Port in the prompt, when the ST-LINK is un-available. 

Tried to connect and run some BSL Commands, and it is working fine with the hard coded parameters.

 

Looking for some pointers / work-arounds / solutions on how to resolve this issue the right way, so that the dynamic listing of the interfaces is possible.

Please do let me know if any further information is required.

 

Thank you! 

1 reply

Aziz BRIGUI
Technical Moderator
October 10, 2024

Hello @MRKIV ,

Thanks for your detailed analysis !

I confirm the same behavior on my side. For now, beside connecting an ST-Link, I don't see a workaround.

I've reported the issue internally (Internal tracking number : 193440).

I will keep you posted as soon as the issue is fixed.

Aziz

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.
MRKIVAuthor
Associate
October 13, 2024

Hello @Aziz BRIGUI ,

Thanks for the update, will be awaiting for further updates on the fix.

 

Regards,

MRKIV  

Aziz BRIGUI
Technical Moderator
March 7, 2025

Hello @MRKIV,

Issue is fixed in STM32CubeProgrammer v2.19.

Aziz

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.