cancel
Showing results for 
Search instead for 
Did you mean: 

Ocasional DFU problems in STM32CubeProgrammer on Windows 10

Shlapunov.Nicolai
Associate II

Hi Everyone,

I have some problems with DFU on Windows 10. I use WeAct BlackPill boards based on STM32F411 MCU. This board has BOOT0 button which allow to update firmware using STM32CubeProgrammer and DFU mode.

Recently I got some(not all) boards that acts very weird. Those boards enters DFU mode just fine, detects by STM32CubeProgrammer and able to connect. But as soon I try to erase or program those boards - STM32CubeProgrammer says "Connection lost" and that is it. After that those boards enters into DFU mode, STM32CubeProgrammer able to read serial number, but any attempt to connect failed:

  16:51:36 : STM32CubeProgrammer API v2.18.0 | Windows-64Bits 
  16:51:45 : UR connection mode is defined with the HWrst reset mode
  16:51:45 : USB speed   : Full Speed (12MBit/s)
  16:51:45 : Manuf. ID   : STMicroelectronics
  16:51:45 : Product ID  : STM32  BOOTLOADER
  16:51:45 : SN          : 337F33963134
  16:51:45 : DFU protocol: 1.1
  16:51:45 : Board       : --
  16:51:45 : Device ID   : 0x0431
  16:51:45 : UPLOADING OPTION BYTES DATA ...
  16:51:45 :   Bank          : 0x00
  16:51:45 :   Address       : 0x1fffc000
  16:51:45 :   Size          : 16 Bytes
  16:51:45 : UPLOADING ...
  16:51:45 :   Size          : 1024 Bytes
  16:51:45 :   Address       : 0x8000000
  16:51:45 : Read progress:
  16:51:45 : Error: Data read failed
  16:51:45 : Warning: Connection to device 0x431 is lost
  16:51:51 : Warning: Connection to device 0x431 is lost
  16:52:00 : Disconnected from device.
  16:52:00 : Disconnected from device.

If I use ST-Link to program those boards, I able to connect in DFU mode again... until I try to reprogram it. Then same problem with connection appears again.

I tried two different cables and three different laptops - same result.

But then I decided to try another PC with Windows 11 and it works! It works every single time on two different Windows 11 based laptops with no problems! STM32CubeProgrammer version is the same, so it is not that, it is something else. I wondering what it can be.

 

I really want this issue to be fixed, because I can't use those boards for my SmartPendant project to control CNC machines based on grblHAL controllers, since it will be impossible to update firmware under Windows 10, and even worse - attempt bricks device until it will be reprogrammed on Windows 11.

SmartPendant1.jpgSmartPendant2.jpg

Devtronic_SmartPendant_Case.png

1 REPLY 1
Pavel A.
Evangelist III

 since it will be impossible to update firmware under Windows 10

Windows 11 works better than Win10. Sometimes newer is better. Support of Windows 10 will end in October anyway. Time to update!