Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing capacitor on the reset signal (EMI hardening) #16

Open
Magpie-81 opened this issue May 10, 2023 · 4 comments
Open

Missing capacitor on the reset signal (EMI hardening) #16

Magpie-81 opened this issue May 10, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Magpie-81
Copy link

Version Number

1.0.1

Bugfix or Enhancement

Bugfix

Description

Reset-Pin of the MCU (NRST, Pin 7) has no capacitor.
This is a common failure point with ESD and other EMI-events that will trigger an unexpected hardware reset of the controller easily. Adding capacitors help to keep the signal stable so fast transients can not trigger the edge detection interrupt that resets the controller.

Suggested Solution

Add a 470pF and 100nF capacitor in parallel and as close as possible to the NRST Pin of the MCU.

@Magpie-81 Magpie-81 added the triage for issues that need a first response and tagging label May 10, 2023
@sphawes sphawes added bug Something isn't working and removed triage for issues that need a first response and tagging labels May 10, 2023
@sphawes sphawes self-assigned this May 10, 2023
@sphawes sphawes added this to the REV12 Feeder Motherboard milestone May 10, 2023
@sphawes
Copy link
Member

sphawes commented May 10, 2023

Thanks for the note @Magpie-81! Added to the queue for the next rev.

@warasilapm
Copy link

This is a good find. However, the 470 pF and external pullup are both unnecessary as the STM32F031 has an internal pull up and filtering on the input. I would just swap out the 10 kΩ pullup to 3.3 V to a 0.1 uF capacitor to ground as recommended by ST.
image

@Magpie-81
Copy link
Author

I know from experience in the EMC lab that having only a 100nF on the reset pin does not work with STM32 controllers. Having footprints and options to add more external filtering is always preferred to having to respin a board because it failed certification. The passive components don't make the BOM significantly bigger or more expensive (the 470pF is already used in the schematic, thats why i went with this value here), and space does not seem that thight here that you need to start cutting parts.

@warasilapm
Copy link

We have conflicting anecdotal experience. We have a board where this reset capacitor was omitted and it made it through some pretty aggressive testing without any issue. Since nothing was connected to that pin the antenna length was much shorter than here with a reset switch. Like all EMC things there's a certain amount of black magic involved at my level of understanding and tools. This is probably also capacitor property dependent.

If the 470 pF is already in the BOM that's an easier sell IMO. If X/Y caps are added to the RS-485 lines as in #19 it could be good for them to be the same value as these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants