2024-01-15 09:51 AM
Hi,
When attempting to connect to an STM32F030C8T6 MCU, ST-LINK Utility gives the following error message:
"Can not connect to target!
If you're trying to connect to an STM32W1xx device, please select Normal or HotPlug mode from Target->Settings menu.
If you're trying to connect to a low frequency application , please select a lower SWD Frequency mode from Target->Settings menu.
Can't reset the core"
I have it connected via SWD. Pin 19 of ST-LINK/V2 is connected to the VDD of the MCU. Pin 1 is connected to VDD of the MCU. GND of MCU is connected to pin 20 of ST-LINK.
How can I fix this error? I've had the same setup before and that has worked. This is the first time I'm getting this error. I've tried rebooting my PC & ST-LINK. I can't erase the chip because the ST-LINK Utility can't connect to it.
Solved! Go to Solution.
2024-01-15 12:18 PM
2024-01-15 10:39 AM - edited 2024-01-15 10:40 AM
Hi,
ST-LINK Utility is old and deprecated.
Use stmCubeProgrammer ! https://www.st.com/en/development-tools/stm32cubeprog.html
download, install - then try with this to connect.
2024-01-15 10:55 AM
Hi,
I tried to connect with Stm32CubeIDE, didn't work.
2024-01-15 11:11 AM
Tried connecting it through STM32CubeProgrammer.
Try Connect Under Reset option.
2024-01-15 12:18 PM
Hi,
I didn't change anything, but it works now. (??)
2024-01-16 12:48 AM
Glad to know the issue has been solved :)
Disconnecting and connecting the board may have solved your problem!