Skip to main content
Associate II
Apr 22, 2024 9:05 AM UTC
Question

Error Target MCU stm32f401cd

Salut la communauté,

J'ai créé une carte électronique permettant de visualiser l'état de la batterie d'un ULM. J'ai utilisé le microcontrôleur STM32F401CD, et j'avais initialement prévu d'utiliser uniquement l'horloge interne HSI du MCU, donc je n'ai pas ajouté d'horloge externe. En voulant programmer ma carte, j'ai remarqué que je parviens à effectuer une mise à jour sur mon STM32 Link/v2, mais je n'arrive pas à cibler mon MCU en SWD (qui est correctement alimenté en 3.3V, comme mesuré). Je voulais donc savoir si le problème pourrait venir du HSI.

Merci beaucoup.

This topic has been closed for replies.

44 replies

mƎALLEm
ST Technical Moderator
Apr 22, 2024 9:25 AM UTC

Hello,

Please write in English.

Translation:

I created an electronic card allowing you to visualize the battery status of a ULM. I used the STM32F401CD microcontroller, and I had originally planned to use only the MCU's internal HSI clock, so I didn't add an external clock. When wanting to program my card, I noticed that I am able to perform an update on my STM32 Link/v2, but I cannot target my MCU in SWD (which is correctly supplied with 3.3V, as measured) . So I wanted to know if the problem could be with the HSI.

Thank you so much.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
mƎALLEm
ST Technical Moderator
Apr 22, 2024 9:29 AM UTC

The HSI is the default clock source of the system clock. So sure this is not the source of the problem.

You need to check your HW especially the debug part: SW etc ..

You can refer to this AN for more details and for a reference design.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
yassirAuthor
Associate II
Apr 26, 2024 8:35 AM UTC

To provide context, I've recently created an electronic board using the STM32F401CD MCU and I'm in the process of its initial use. I'm supplying power to my board with 3.45V, I've checked the continuity of my traces, and I haven't found any particular issues. However, although I've successfully recognized and upgraded my ST Link/V2, I'm unable to target my MCU. Upon checking my SWCLK pin, I noticed that throughout my procedure, my SWCLK isn't oscillating. I'd like to know, firstly, what the problem might be, considering I want to use only the MCU's internal HSI clock, and secondly, whether my clock starts running directly after powering up my MCU or if it needs to be initialized in a certain way.

Yassir OTMAN