Skip to main content
Associate III
Mar 1, 2024 9:58 AM UTC
Solved

Data mismatch found at address 0x08001000 (byte = 0xFF instead of 0x0E) when connecting debugger

I am programming a custom board using STM32L562. While trying to connect the debugger using STM32CubeIDE I get the following error:

 

Verifying ...

Error: Data mismatch found at address 0x08001000 (byte = 0xFF instead of 0x0E)

Error: Download verification failed

Encountered Error when opening C:\ST\STM32CubeIDE_1.13.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.0.202305091550\tools\bin\STM32_Programmer_CLI.exe

Error in STM32CubeProgrammer

Shutting down...

Exit.

 

Besides, when I am trying to erase the memory with the programmer it is impossible.

Does anybody have any suggestion?

This topic has been closed for replies.
Jackie3Best answer
Explorer II
Mar 11, 2024 4:06 PM UTC

Hello, I have the same problem with a custom-built stm32H503. I remember it was working normally before this year. After an update for cubeide or st-link firmware, the problem came. The problem can be temporarily bypassed by doing a full chip erase before programming. See https://community.st.com/t5/stm32cubeide-mcus/how-to-erase-flash-before-programming-with-stm32cubeide-solved/td-p/318572

7 replies

Uwe Bonnes
Chief
Mar 1, 2024 10:27 AM UTC

This looks to my like erase flash. Di programming succeed?

Lyap94Author
Associate III
Mar 1, 2024 10:35 AM UTC

Lyap94_0-1709289280195.png

It says file download complete. Then tries to read and finds the memory mismatch.

Uwe Bonnes
Chief
Mar 1, 2024 12:34 PM UTC

Give context, like:

- Commercial board or own construction?

- Did it work before?

- What options are set?

- Running in secure mode?

Tesla DeLorean
Guru
Mar 11, 2024 4:29 PM UTC

Check voltages / power. Where applicable check VCAP voltage / capacitors, typically 1.25V and 2U2 each on multiple pins, or 4U7 on single/combined pins.

Check perhaps also banking mode of FLASH, per OB

Use most current version of STM32 Cube Programmer for awareness of new parts. Older STLINK Utilities has been deprecated for many years.

Avoid Hubs and Docking Stations with ST-LINK/V2, use direct, high quality data cable.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Associate
Sep 6, 2025 6:40 PM UTC

@Tesla DeLorean wrote:

Avoid Hubs and Docking Stations with ST-LINK/V2, use direct, high quality data cable.


This worked for me. I was using USB HUB. Still I do not understand why, because the programmer app could detect and erase flash. The IDE could download it but during verification, it showed error.