Showing results for 
Search instead for 
Did you mean: 

When the external clock configuration error causes stlink to be unable to find the MCU

Associate II

In cubeIDE's ioc, the original 16M external clock is configured to 25M. Burn the program and debug it. After the program finishes running SystemClock_Config(), debug automatically exits and the program can no longer be burned. Stlink has been unable to find the MCU device. It is guessed that the chip is locked. How to solve?




Pull BOOT0 High and restart. Connect and Erase with STM32 Cube Programmer 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..