Skip to main content
Visitor II
February 19, 2025
Question

STM32Cube IDE problem flashing the code

  • February 19, 2025
  • 2 replies
  • 511 views

Hi,

 

I'm able to build the project and generate the hex file. Out of sudden i'm not able to flash my board using STLink v2 neither i'm able to enter into debugging mode. 

Using STM32CubeProgrammer i'm able to flash the board but i want to enter into debugging mode that is not working with STM32CubeIDE.

Error Message-

'''

Error: Data mismatch found at address 0x08010B94 (byte = 0x08 instead of 0x5A)

 

 

Error: Download verification failed

 

 

Encountered Error when opening /home/<user>/st/stm32cubeide_1.17.0/plugins/com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.linux64_2.2.0.202409170845/tools/bin/STM32_Programmer_CLI

Error in STM32CubeProgrammer

Shutting down...

Exit.

'''

ape07_0-1739940858190.png

 

 

 

2 replies

ST Employee
February 19, 2025

Hello, 

welcome to ST Community.

What microcontroller and board are you using? For debug mode there have to be SWCLK and SWDIO pin free and connected to STLink. Is this connection right on your board?

 

TDK
Super User
February 19, 2025

Does your program enter low-power modes or program the flash in the first second of running? If so, you will have issues connecting. Knock off programmers are also known to work poorly with STM32CubeIDE.

"If you feel a post has answered your question, please click ""Accept as Solution""."