2021-01-13 07:03 AM
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.
2021-03-25 03:24 AM
Hi JLiao.3 ,
The message "The interface firmware FAILED to reset/halt the target MCU" means that the MCU cannot be accessed by the STlink. This message appears for example if there is no MCU on the Nucleo board or MCU is not connected by SWD wires to SWD interface. Please check the correct MCU connection to STlink - this is hardware problem.
Regards
Igor
2021-11-08 11:59 PM
I'm pretty sure it can also be a software problem. I had the same problem with the NUCLEO-U575ZI-Q when trying to debug (I received error code 32 as well). Changing from the ST-Link to OpenOCD however solved the problem in my case.
2022-05-16 07:35 AM
I have the same issues.Can you tell me the derails to fix it?:loudly_crying_face:
2022-05-17 01:34 AM
Hi,
The reason to not connect to MCU can be also in MCU firmware - the firmware can disable SWD functions on pins and then external debugger cannot connect there (of firmware can put MCU into some low power mode - Stop, Standby - where SWD functions are not supported on pins).
Solution is to configure the software to be able to connect to device under reset. The best way is to connect to MCU in STM32CubeProgrammer (connection under reset) and erase the firmware which is blocking SWD wires. Instead of STM32CubeProgrammer we can use also some another programming tools (IAR, ... ).
The OpenOCD connects probably to MCU under reset.
Regards
Igor
2022-09-10 05:54 AM
Hi, How can i do that?
2022-09-10 07:14 AM
Which part?
Please be specific about your exact situation, this is an 18 month old thread
2022-09-10 01:16 PM
thanks i was able to do it
2023-06-23 02:34 AM
Hello,i have had same problem but when i see the current consumption i see 0,00 . any suggestions ??!
2024-04-18 06:30 AM
Hell,
Can you explain the steps you took?