Error Target MCU stm32f401cd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-22
2:05 AM
- last edited on
‎2024-04-22
3:51 AM
by
Lina_DABASINSKA
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.
- Labels:
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-29 6:45 AM
Thank you for your Help, i will follow your advices !
Can i show you my schematic and give me back some tips or some mistakes that you can find for improve and upgrade my card ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-29 7:00 AM - edited ‎2024-04-29 7:00 AM
That image is too low resolution to read.
Do you have a PDF, or a high-resolution image?
A description of what it's supposed to do would also help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-29 7:05 AM
Take a look to these document, it's better.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-29 10:41 AM
- Why VDD (pin 36) is not connected to 3.3V?
- Why VBAT is not connected to VDD?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-29 11:12 PM
I thought it wasn't necessary to connect Vbat because I don't use it, and for VDD, i thought that all VDD were connected together inside of the MCU.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-30 12:23 AM
I thought it wasn't necessary to connect Vbat because I don't use it, and for VDD,
You need to connect VBAT to VDD if the backup domain is not used. From RM0368 rev 5 / page 72:
i thought that all VDD were connected together inside of the MCU.
You need to connect all the VDD pins to 3.3V. That's why from the beginning I suggested you to refer to the documentations and especially the AN4488.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-30 12:50 AM
Yes but I use a battery so i thought it wasn't necessary. Yes for the next version of my card will use the AN4488 document before.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-30 1:19 AM
Yes but I use a battery so i thought it wasn't necessary.
You need to put a jumper of switch on VBAT pin to to select between Battery source or VDD.
This is an example from STM3240G-EVAL board:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-30 5:54 AM
Ok I will do this for the future card, so do you think that for my current card, i can't correct problems inside ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-30 6:13 AM
I think it's probably best to start again - after thoroughly studying the datasheet, reference manual, application notes (including, but not limited to AN4488), and the dev board schematics.
If you haven't done it before, you should start by prototyping your system on a Nucleo-F401RE:
https://www.st.com/en/evaluation-tools/nucleo-f401re.html
That way you know you are starting with good, known, supported hardware - and that can be a reference for your own design.
