cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer “Error: Download verification failed�?

JAdam.1
Associate

Hardware used:

STM32H747I-DISC0 Discovery kit (MB1248-H747I-D02 / A191001982)

Tools used:

STM32CubeProgrammer v2.4.0.

STM32CubeIDE v1.3.1 for code generation

(gnu-tools-for-stm32.7-2018-q2-update_1.0.0.201904181610)

STM32CubeProgrammer gives me an error when I try to program M4 using embedded bootloader. I have no problem programming M7 similarly.

Error:

13:35:23 : Error: Data mismatch found at address 0x08100040 (byte = 0xFF instead of 0xAD)

13:35:23 : Error: Download verification failed

I follow the steps below to access embedded bootloader:

1-     Program option bytes on application code(M7) - ( I’m just update BOOT_CM7_ADD0 = 0x1FF0 )

2-     Power Off -> Power On

3-     Connect the embbeded bootlaoder (After push the Reset Push-Button(B1)  Why?? )

STM32CubeProgrammer log:

13:34:59 : STM32CubeProgrammer API v2.4.0

13:34:59 : ST-LINK error (DEV_CONNECT_ERR)

13:35:05 : Serial Port COM52 is successfully opened.

13:35:05 : Port configuration: parity = even, baudrate = 115200, data-bit = 8, stop-bit = 1.0, flow-control = off

13:35:06 : Timeout error occured while waiting for acknowledgement.

13:35:06 : Activating device: OK

13:35:06 : Chip ID: 0x450 

13:35:06 : BootLoader protocol version: 3.1

13:35:08 : UPLOADING OPTION BYTES DATA ...

13:35:08 : Bank : 0x00

13:35:08 : Address : 0x5200201c

13:35:08 : Size : 308 Bytes

13:35:08 : UPLOADING ...

13:35:08 : Size : 1024 Bytes

13:35:08 : Address : 0x8000000

13:35:08 : Read progress:

13:35:09 : Data read successfully

13:35:09 : Time elapsed during the read operation is: 00:00:01.136

13:35:22 : Memory Programming ...

13:35:22 : Opening and parsing file: FL_CTRL_CM4.hex

13:35:22 : File : FL_CTRL_CM4.hex

13:35:22 : Size : 4880 Bytes

13:35:22 : Address : 0x08100000 

13:35:22 : Erasing memory corresponding to segment 0:

13:35:22 : Erasing internal memory sector 8

13:35:22 : Download in Progress:

13:35:23 : File download complete

13:35:23 : Time elapsed during download operation: 00:00:01.203

13:35:23 : Verifying ...

13:35:23 : Read progress:

13:35:23 : Error: Data mismatch found at address 0x08100040 (byte = 0xFF instead of 0xAD)

13:35:23 : Error: Download verification failed

0693W000000XCHeQAO.jpg0693W000000XCHRQA4.jpg0693W000000XCHyQAO.jpg0693W000000XCINQA4.jpg0693W000000XCIXQA4.jpg0693W000000XCIcQAO.jpg

3 REPLIES 3
JAdam.1
Associate

Is there anyone who can help me?

Thanks

northh_sven
Associate II

I had the same issue (https://community.st.com/s/question/0D53W00000Bs2G1SAJ/stm32h755-st-bootloader-not-working-on-bank-2)

My solution: Erase the whole chip and than skip flash erase before programming!