cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to upgrade STM32WB via USB bootloader

HCohe.1
Associate III

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)
1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

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

Then, please keep me updated.

 

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

4 REPLIES 4
Imen.D
ST Employee

Hello @HCohe.1 ,

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

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
HCohe.1
Associate III

Using a custom board with STM32WB5MMG module.

STM32CubeProgrammer V2.10.0

Imen.D
ST Employee

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

Then, please keep me updated.

 

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
HCohe.1
Associate III

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.