cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Cube IDE problem flashing the code

ape07
Associate

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 2
Hl_st
ST Employee

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?

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

TDK
Guru

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