2024-04-22
02:05 AM
- last edited on
2024-04-22
03:51 AM
by
Lina DABASINSKAITE
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.
2024-04-29 02:45 AM
I use STM32CubeProgrammer.
2024-04-29 02:54 AM
Try with ST-LINK updater tool (STSW-LINK007)
2024-04-29 02:57 AM
It's done ! Now what can I do to solve the problem of target my MCU STM32401CD ?
2024-04-29 03:34 AM
Check your HW by referring to the AN4488 / mainly Figure 14 & Figure 19. Check your connections, your wiring ...
2024-04-29 06:01 AM
For my HW, I have this, is it correct ?
2024-04-29 06:10 AM
That's a very poor image - hard to read what the text says.
And it tells us nothing, as it doesn't show where those lines actually go!
It's best to include NRST on the programming/debug header - this can get you out of some "stuck" situations...
2024-04-29 06:15 AM
Sorry i'm fresh and new developer ! This is my schematic. These pin are connected to Pin header, in my PCB.
2024-04-29 06:22 AM - edited 2024-04-29 06:25 AM
What's going on here?
It looks like you've only connected pin 36 of the STM32 to pin 1 of the programming connector?
All of your VDD pins need to be connected together!
Again, as @SofLit has repeated a couple of times, you really need to study the AN4488 Application Note!
You should also look at the ST Dev Board schematics as examples ...
2024-04-29 06:27 AM
Sorry but i never hered something about the AN4488 and here a I see that it stuck me in my developement. I have to connect all VDD together but i also have toconnect all my GND together or not ?
2024-04-29 06:33 AM
@yassir wrote:Sorry but i never hered something about the AN4488
The first thing when starting using a new chip should be to spend time studying the available documentation.
ST (like most other manufacturers) helpfully gather this all together into one place - called the "Product Page":
https://www.st.com/en/microcontrollers-microprocessors/stm32f401cd.html
There you'll find the datasheet and all other supporting resources - including the Application Notes.
@yassir wrote:i also have to connect all my GND together or not ?
Yes.