Skip to main content
MRemm.1
Associate
February 9, 2022
Solved

STM32Cube IDE Error: Download verification failed (data mismatch)

  • February 9, 2022
  • 1 reply
  • 3412 views

I've been using a STM32U585 Discovery kit for a few days and have succesfully run several programs on it. However today I suddenly got this error in STM32CubeIDE when trying to run a new program:

---------------------------------------------------------------------------------------------------------------

Error: Data mismatch found at address 0x0800899C (byte = 0x31 instead of 0x33)

Error: Download verification failed

---------------------------------------------------------------------------------------------------------------

Trying to upload different programs gave the same result, but with the mismatch at different addresses.

Using STM32CubeProgrammer I can erase the flash completely and then normally upload and run code with CubeIDE once, but after uploading a different program again I will get the same error.

I've upgraded the ST Link firmware, no change.

I would appreciate any help in finding the problem as I don't want to use CubeProgrammer to fully erase flash every time.

This topic has been closed for replies.
Best answer by MRemm.1

It seems an option byte was somehow switched.

0693W00000JPG3qQAH.pngI tried different combinations of SWAP_BANK and DBANK and this is what works for me now.

Hopefully this will help someone with the same problem.

1 reply

MRemm.1
MRemm.1AuthorBest answer
Associate
February 10, 2022

It seems an option byte was somehow switched.

0693W00000JPG3qQAH.pngI tried different combinations of SWAP_BANK and DBANK and this is what works for me now.

Hopefully this will help someone with the same problem.