Skip to main content
Associate
January 14, 2025
Question

Can't connect to STM32

I'm encountering difficulties while attempting to connect and debug my STM32 microcontroller, and I'm seeking guidance from the community. I have erased the full chip flash memory and uploaded my code but suddenly I start getting these error messages,

Error Messages:
1. In ST-Link Utility:

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.

This topic has been closed for replies.

1 reply

Andrew Neil
Super User
January 14, 2025

Welcome to the community.

Please see the posting tips:

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

 

I've edited your post title as, "Hello ST Community" doesn't identify what your post is about.

 


@huan123 wrote:

I'm encountering difficulties while attempting to connect and debug my STM32 microcontroller, .


You say microcontroller (aka "MCU"), but you've posted in the MPU section.

What chip are you using? The thread can be moved if required.

Also please give board details.

 


@huan123 wrote:

In ST-Link Utility:


Note that the old ST-Link Utility has been replaced for many years by the STM32CubeProgrammer:

https://www.st.com/en/development-tools/stm32cubeprog.html

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.