Skip to main content
HCohe.1
Associate III
November 7, 2023
Solved

Unable to upgrade STM32WB via USB bootloader

  • November 7, 2023
  • 4 replies
  • 1650 views

I followed the instructions posted here to enter the bootloader and successfully connect to the MCU via USB using STM32CubeProgrammer.  When I attempt to load code the following error occurs:

  09:12:45 : USB speed   : Full Speed (12MBit/s)
  09:12:45 : Manuf. ID   : STMicroelectronics
  09:12:45 : Product ID  : DFU in FS Mode
  09:12:45 : SN          : 2061347F4852
  09:12:45 : DFU protocol: 1.1
  09:12:45 : Board       : --
  09:12:45 : Device ID   : 0x0495
  09:12:45 : UPLOADING OPTION BYTES DATA ...
  09:12:45 :   Bank          : 0x00
  09:12:45 :   Address       : 0x1fff8000
  09:12:45 :   Size          : 128 Bytes
  09:12:45 : UPLOADING ...
  09:12:45 :   Size          : 1024 Bytes
  09:12:45 :   Address       : 0x8000000
  09:12:45 : Read progress:
  09:12:45 : Data read successfully
  09:12:45 : Time elapsed during the read operation is: 00:00:00.004
  09:13:33 : Memory Programming ...
  09:13:33 : Opening and parsing file: xxx.bin
  09:13:33 :   File          : xxx.bin
  09:13:33 :   Size          : 507.16 KB
  09:13:33 :   Address       : 0x08000000
  09:13:33 : Download in Progress:
  09:13:33 : Error: Write failed at address: 0x8000000
  09:13:33 : Error: failed to download Segment[0]
  09:13:33 : Error: failed to download the File
  09:13:33 : RUNNING Program ...
  09:13:33 :   Address:      : 0x08000000
  09:13:33 : Error: Start operation failed
  09:13:33 : Warning: Connection to device 0x495 is lost
  09:13:34 : Disconnected from device.
  09:13:34 : ST-LINK error (DEV_CONNECT_ERR)
This topic has been closed for replies.
Best answer by Imen.D

Can you please try with latest release STM32CubeProgrammer (v2.14).

Then, please keep me updated.

 

Imen

4 replies

ST Technical Moderator
November 8, 2023

Hello @HCohe.1 ,

Which board are you using? which CubeProgrammer version? This will help to check this issue.

Imen

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
HCohe.1
HCohe.1Author
Associate III
November 8, 2023

Using a custom board with STM32WB5MMG module.

STM32CubeProgrammer V2.10.0

Imen.DBest answer
ST Technical Moderator
November 8, 2023

Can you please try with latest release STM32CubeProgrammer (v2.14).

Then, please keep me updated.

 

Imen

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
HCohe.1
HCohe.1Author
Associate III
November 27, 2023

I upgraded and also entered the bootloader from CDC_Standalone rather than from our full application.  I was then able to load our application using STM32CubeProgrammer over USB.