STM32F429ZIT6 doesn't start without debugging session
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-15 6:02 AM
Hey Guys,
I have designed a custom board with the STM32F429ZIT6 which I programm with the STLink debugger together with TrueStudio. So far everything seems to work except that when I don't use a debugging session I have to manually make a reset on NRST pin or otherwise the processor will not start it's normal program execution. I have to do this every time power get's cycled.
I have one 4,7uF cap for overall buffering and then 10nF and 100nF at each Vdd and an extra ferrite bead for the Vdda pin but with 1µF and 10nF as a decooupling. I did not implemnt a 100nF cap from NRST to ground for short ESD burst but I doubt that this is the cause for the problem since after the manual reset everything works fine.
Do I maybe need a reliable power cycling with an external power supervisor chip doing the manual reset, or did I do something comepletely wrong?
My controller runs with 3,3V.
best regards
Benjamin
Solved! Go to Solution.
- Labels:
-
STM32F4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-16 4:58 AM
OK I programmed the optional bytes via the ST-LINK Utility. It didn't change the problem. But for a reason I don't know today in the lab it seems to work without a manual NRST reset. Strange to my believes but that's how it is now. Anyhow I think I will implement a robust POR circuit.
So for now it may seem as if the 100nF on NRST did the job. But I will watch this..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-15 6:07 AM
Make sure BOOT0 is pulled low strongly.
Issue suggests BOOT0 floats, and looks relatively high as the supply ramps and the processor starts running.
Yes, having a proper POR circuit might help by clamping NRST low for 100's ms after the supply thresholds at 2.85V or some percent below nominal is preferable, but in this case might mask the issue.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-15 6:12 AM
I have implemented a 10k from BOOT0 as from the DISCOVERY schematics suggested. Would you recommend a 4,7k?
Ah and I have BOOT1 with 10k floating at the moment because with GND the debugging would not work..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-15 6:16 AM
The value of the BOOT0 pulldown does not matter, as long as the input bias current does not pull the pin high. However you really should try with 100n at NRST. Why did you omit it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-15 6:27 AM
To my regret, I did not read this in AN4488 (Getting started with STM32F4xxxx MCU hardware development ). And didn't see at once that the 100nF are also implemented inside the DISCOVERY schematics. But I really would wonder if this should be the cause, since the 100nF are only for short EM or ESD burst to not trigger the NRST. At least for my understanding.. otherwise I would get some resets when I run my program after manually reseting the controller.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-15 6:40 AM
100nF and 50 kOhm internal Pullup give 5 ms time constant. When you power cycle, the input voltage will be much less "nervous" after this 5 ms period. Please, try the capacitor at NRST and report back!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-15 6:52 AM
Correct, the reset signal is intended to start the mcu once its power suppy are high enough to operate properly. In debug mode, Reset is typically not monitored by ST-Link.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-15 6:53 AM
Off course! You are right! I will check on that immediately and report back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-15 7:13 AM
OK I implemented 100nF to GND on NRST. Sadly it doesn't change anything. Still the same problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-15 7:37 AM
Do you have VCAP1/VCAP2 external capacitor ? Do option bits disable Brownout supervision?
