Skip to main content
Associate II
September 12, 2025
Solved

[BUG][V2.20] -noreconnect doesnt work on Windows

  • September 12, 2025
  • 8 replies
  • 1084 views

I recently tried to use -noreconnect via the cli on windows and it still attempted to reconnect.

I was connected via UART and programming option bytes. 

Here was the command I used:

& "C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" -c port=COM14 br=115200 -noreconnect -ob ndbank=0x0

I see that there was fix put in for linux. Im wondering if the same bug exists on Windows.

Thanks,

Daniel

 

Best answer by Imen.D

Hello All,

Thank you for posting and for all the details you provided.

I escalated this issue to the relevant team (through internal ticket number 218005) to take a closer look at the problem.

(PS: ticket number 218005 is an internal tracking number and is not accessible or usable by customers).

8 replies

Visitor II
September 15, 2025

I encountered the same issue with -noreconnect still attempting to reconnect in v2.20 on Linux.

I am programming option bytes on the U575 via USB.

The command I ran and its output are included as an attachment.

Associate
September 17, 2025

I'm having the same issue when using API v2.20 on Windows. 

dnugentAuthor
Associate II
September 17, 2025

Thanks for the confirmation and work arounds.

I assumed posting here was filing the bug with ST. Is there a different place for that?

 

Daniel

Imen.DBest answer
ST Technical Moderator
September 22, 2025

Hello All,

Thank you for posting and for all the details you provided.

I escalated this issue to the relevant team (through internal ticket number 218005) to take a closer look at the problem.

(PS: ticket number 218005 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 'Best answer' on the reply which solved your issue or answered your question. Thanks
ST Technical Moderator
October 8, 2025

Hi All,

We confirm this issue. 

Thank you again for highlighting this issue. Your feedback has been very helpful in raising the ticket along to our development team for fix.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Visitor II
February 10, 2026

I'm using STM32CubeProgrammer API but I don't find the command to no reconnect to device after OB programming. Could you list the procedure to do that? Thanks

Associate
February 12, 2026

Just like to echo this thread and add that the -noreconnect command still doesn't seem work for STM32CubeProgrammer v2.21.0 on Windows 11

Looking forward to a fixed release.

Thanks,
Eric

Aziz BRIGUI
ST Technical Moderator
February 25, 2026

Hello all,

Issue is fixed in the latest STM32CubeProgrammer release available here.

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.
Associate
June 25, 2026

Hello,

I just have downloaded and reinstalled the latest version, v2.22.0. It looks like the issue is still there, at least for USB DFU under Windows 11.

Here is the log:

D:\>"C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" --list usb

-------------------------------------------------------------------
STM32CubeProgrammer v2.22.0
-------------------------------------------------------------------

===== DFU Interface =====

Total number of available STM32 device in DFU mode: 1

Device Index : USB1
USB Bus Number : 001
USB Address Number : 003
Product ID : STM32 BOOTLOADER
Serial number : AE571037425C
Firmware version : 0x011a
Device ID : 0x0461


D:\>"C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe" --noreconnect --quietMode -vb 1 --connect port=USB sn=AE571037425C -ob nSWBOOT0=1 nBOOT0=1

-------------------------------------------------------------------
STM32CubeProgrammer v2.22.0
-------------------------------------------------------------------



USB speed : Full Speed (12MBit/s)
Manuf. ID : STMicroelectronics
Product ID : STM32 BOOTLOADER
SN : AE571037425C
DFU protocol: 1.1
Board : --
Device ID : 0x461
Device name : STM32L496xx/STM32L4A6xx
NVM size : 1 MBytes (default)
Device type : MCU
Revision ID : --
Device CPU : Cortex-M4

UPLOADING OPTION BYTES DATA ...

Bank : 0x00
Address : 0x1fff7800
Size : 36 Bytes



Bank : 0x01
Address : 0x1ffff808
Size : 28 Bytes




PROGRAMMING OPTION BYTES AREA ...

Bank : 0x00
Address : 0x1fff7800
Size : 36 Bytes





Reconnecting...


Unable to reconnect the target device: time out expired

Error: Downloading Option Bytes Data failed


UPLOADING OPTION BYTES DATA ...

Bank : 0x00
Address : 0x1fff7800
Size : 36 Bytes


Error: Uploading Option Bytes bank: 0 failed
Time elapsed during option Bytes configuration: 00:00:10.965