cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with STM32G0B0: failed to download Segment[0]

I have a Nucleo board with a new MCU, base board is the Nucleo-G070RB. Now it is a ST link with a STM32G0BORE.

I have a problem with the internal bootloader where i cannot upload a new program via USB DFU.

There is no hardware problem because VCP works just fine. No data corruption of something.

I have tried .HEX .BIN and .ELF all have the same problem.

This is the error log is have:

18:04:57 : UR connection mode is defined with the HWrst reset mode

 18:04:57 : USB speed  : Full Speed (12MBit/s)

 18:04:57 : Manuf. ID  : STMicroelectronics

 18:04:57 : Product ID : DFU in FS Mode

 18:04:57 : SN     : 204E315A4630

 18:04:57 : DFU protocol: 1.1

 18:04:57 : Board    : --

 18:04:57 : Device ID  : 0x0467

 18:04:57 : UPLOADING OPTION BYTES DATA ...

 18:04:57 :  Bank     : 0x00

 18:04:57 :  Address    : 0x1fff7800

 18:04:57 :  Size     : 68 Bytes

 18:04:57 :  Bank     : 0x01

 18:04:57 :  Address    : 0x1fff7870

 18:04:57 :  Size     : 4 Bytes

 18:04:57 : UPLOADING ...

 18:04:57 :  Size     : 1024 Bytes

 18:04:57 :  Address    : 0x8000000

 18:04:57 : Read progress:

 18:04:57 : Data read successfully

 18:04:57 : Time elapsed during the read operation is: 00:00:00.031

 18:05:05 : Memory Programming ...

 18:05:05 : Opening and parsing file: g0b0test.hex

 18:05:05 :  File     : g0b0test.hex

 18:05:05 :  Size     : 42.56 KB 

 18:05:05 :  Address    : 0x08000000 

 18:05:05 : Erasing memory corresponding to segment 0:

 18:05:05 : Not flash Memory : No erase done

 18:05:05 : File segment @0x08000000 is not 255-bytes aligned. It will be aligned to @0x07FFFFF8

 18:05:05 : Download in Progress:

 18:05:05 : Error: failed to download Segment[0]

 18:05:05 : Error: failed to download the File

 18:05:05 : RUNNING Program ... 

 18:05:05 :  Address:   : 0x08000000

 18:05:05 : Start operation achieved successfully

 18:05:06 : Warning: Connection to device 0x467 is lost

 18:05:06 : Disconnected from device.

15 REPLIES 15

I have the same problem with stm32g0b1 . While installed version 2.10 from the site. We are waiting for 2.14

Hi @Imen.D,

I tried again to update via USB on the new version, but still no luck. 

 

 Error: Data mismatch found at address  0x08000004 (byte = 0x41 instead of 0x45)
 Error: Download verification failed

 

Do you have an update?

Hi @PieterInHetBos,

Can you please check Option Byte setting?

Try this workaround: Force to erase 'entire flash' memory, before start debugging.

Can you please share the Option Bytes parameters and the log file, in order to investigate the issue.

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

Hi @Imen.D, Force flash erase workt

but i think it was a skill issue 

Imen.D
ST Employee

Hi @PieterInHetBos

Please share the log file and which board used.

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

Hi @Imen.D 

I could not repoduce the issue so i am sure it was a skill issue