2024-11-04 08:48 PM
"I'm working with STM32 NUCLEOF429ZI but I encountered this error. Right after I plugged in the cable to upload the program, the txt file showed this error. Please help me identify the cause and how to fix it."
"The interface firmware FAILED to reset/halt the target MCU"
2024-11-04 11:30 PM
Hello @QuangIoT
First let me thank you for posting.
Here are some potential solutions:
Check Connections:
Ensure that all connections between the ST-LINK and the NUCLEO board are secure and correct. Verify that the SWD pins are properly connected.
Reset Procedure:
Hold down the RESET button on the NUCLEO board while clicking the "Connect" button in STM32CubeProgrammer. Release the RESET button once connected.
Power Supply Verification:
Check that your NUCLEO board is powered correctly. Measure the voltage at the power pins to ensure they are receiving sufficient voltage (typically 3.3V).
Use STM32CubeProgrammer:
Connect to the MCU in "Under Reset" mode using STM32CubeProgrammer, which allows you to communicate with the device even if it is in a non-responsive state. Perform a full chip erase if you can connect successfully.
Firmware Update:
Make sure both your ST-LINK firmware and NUCLEO board firmware are up-to-date. You can update ST-LINK firmware using STM32CubeProgrammer.
Isolation from Other Connections:
If your NUCLEO board is connected to other hardware (like breadboards), try isolating it from those connections to prevent interference.
Replace Hardware:
If all else fails, consider that there may be a hardware fault with either your NUCLEO board or its MCU, and replacing it might be necessary.