STM32F401re external power
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-09 7:03 AM - edited ‎2023-12-09 7:05 AM
Hello everyone.
I'm trying to run my project with external power supply (5V on Vin or E5V) but the problem is that I always have to press the reset button to start the code normally when I connect it, if the board is powered by the USB port the program starts without any problem without pressing the reset button once.
What can be happening that generates this behavior?
Another separate question I had is if when I put the Jp5 pin to feed with E5V can I have at the same time connected the USB to debug? I would try it but there is little time left to finish the project and if it burns I could not get another one so fast.
Thank you very much.
Solved! Go to Solution.
- Labels:
-
Power
-
ST boards
-
STM32F4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-09 2:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-09 7:30 AM
As far as I know the external power supply for STM32F401re Nucleo board is 7V > & < 12V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-09 7:37 AM
Sorry, 5V on E5V. what you say is correct for the VIN pin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-09 8:34 AM
look at the circuit ...then you see, what you connect.
https://www.st.com/en/evaluation-tools/nucleo-f401re.html#cad-resources
seems ok to connect both. :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-09 8:43 AM
thank you for your reply AScha.3
I am just using this schematic as a guide. I am attaching screenshots where apparently it is the same to feed by USB or E5V but for some reason it generates a different effect.
or did you mean that it is OK in the second question to connect via USB while JP5 is configured to power the board with external 5V on E5V?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-09 10:00 AM
right. JP5 on 2-3 powers the F401 by external 5V .
and the stlink also - or by usb (by the diodes d2, d3 ).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-09 2:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-10 12:12 PM
Thank you very much for the answer, I was able to use the HSI and it works with external power supply without using the reset button which is the important thing!.
I don't know if I understand the reason for the failure, it is something related to the HSE startup times when using external power supply, right?
(I was translating)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-12-12 1:40 PM
The HSE starts quickly, but ST-LINK firmware provides a clock for HSE only after 2 second delay. You have to adjust your code to deal with that delay.
