2023-11-07 06:58 AM
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)
Solved! Go to Solution.
2023-11-08 07:12 AM
Can you please try with latest release STM32CubeProgrammer (v2.14).
Then, please keep me updated.
Imen
2023-11-08 06:32 AM - edited 2023-11-08 07:04 AM
Hello @HCohe.1 ,
Which board are you using? which CubeProgrammer version? This will help to check this issue.
Imen
2023-11-08 07:07 AM
Using a custom board with STM32WB5MMG module.
STM32CubeProgrammer V2.10.0
2023-11-08 07:12 AM
Can you please try with latest release STM32CubeProgrammer (v2.14).
Then, please keep me updated.
Imen
2023-11-26 06:19 PM
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.