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.
