cancel
Showing results for 
Search instead for 
Did you mean: 

"The interface firmware FAILED to reset/halt the target MCU"

JLiao.3
Associate

Once I connect st-link v2-1 to STM32G473VBT6, there is a disk added into my PC, and there are 2 files in the disk. One is DETAILS.TXT(Version: V2J37M26 Build:  May 13 2020 17:07:43), another is FAIL.TXT (The interface firmware FAILED to reset/halt the target MCU).

If I try to debug in STM32CubeIDE, it shows

"Target unknown error 32

Error in initializing ST-LINK device.

Reason: Unknown. Please check power and cabling to target."

I tryied to tie Boot0 to high or low, but it did not resolved the problem.

12 REPLIES 12
kannastra
Associate

No H745ZI-Q , voltou ao normal ao carregar o codico com o botão de reset e usuários acionados ao mesmo tempo

DK.7
Senior

After my experiments with Flash, I got an identical problem. How I fixed it is, see screen1.png2.png

wegi01
Associate

I had this same problem on the STM32H735G-DK and reason of this was a wrong firmware uploaded which blocked SWDIO. All the time ST-LINK-V3E put file named "FAIL.TXT" in the mass storage device entries.

Solution: 

Change BOOT switch (showed on the picture below) to SYS MEM possition, plug ST-LINK to USB (now on MSC device doesn't exist "FAIL.TXT" file), run STM32CubeProgrammer and do full erase of MCU flash. Now change BOOT switch to FLASH mark and everything is all right after reset.

STM32H735_TOP1.jpg