Skip to main content
Graduate
March 1, 2024
Solved

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

  • March 1, 2024
  • 2 replies
  • 6269 views

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.
    Best answer by Jackie3

    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

    2 replies

    Graduate II
    March 1, 2024

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

    Lyap94Author
    Graduate
    March 1, 2024

    Lyap94_0-1709289280195.png

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

    Graduate II
    March 1, 2024

    Give context, like:

    - Commercial board or own construction?

    - Did it work before?

    - What options are set?

    - Running in secure mode?

    Graduate II
    March 11, 2024

    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.

    Graduate II
    September 6, 2025

    @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.