ST-LINK: "Failed to execute MI command" & "Error in initializing ST-LINK device
We are using STM32CubeIDE to configure the STM32 controller. Previously, flashing the code to the board was working fine. Recently, while trying to debug, the IDE started showing this error: "Failed to execute MI command""Error in initializing ST-LINK device" We tried upgrading the ST-LINK driver, and the controller responded to the host. In STM32 ST-LINK Utility, we could select the External Loader, which means the connection seemed okay.However, when we tried to erase the flash using ST-LINK Utility, we got:
"Target not connected" We tried many solutions in STM32CubeIDE, but we could not identify the root cause. Could anyone please help us understand what might be going wrong?
