I hit a related issue tonight with a mbed based project that I was working on. I had placed the mbed inside of a plastic enclosure with an external reset switch wired into the nR and GND pins of the mbed. Whenever I would have an ESD event within a few feet of the device, it would reset the device. This would happen if I had the mbed powered from the USB programming cable or a battery (with nothing else connected to the mbed.) If I removed the cable that connected my external switch to nR then the problem was much less likely to happen but it still would happen occasionally. I asked a couple of EEs on a local robotics IRC channel and they first recommended that I make sure that it was the nR signal that was causing my reset issues by shorting it to Vout. This completely eliminated the resets and they had the following suggestions to fix the problem:
- Place a 0.01uF ceramic capacitor between the nR and GND pins.
- Add an additional 10k ohm resistor in parallel to the existing 10k pull-up to halve the resistance and strengthen the pull-up as was recommended in this thread as well.
- Place a small series resistor (100 ohm) inline with the switch.
I only ended up adding the capacitor and didn't continue with the other recommendations as that remedy alone completely solved my problem.
I don't have a solution for the built-in switch yet though. I might try a cap across the switch on the mbed which lives in my breadboard and see if it eliminates the resets I see there.
Thanks to David and Richard for their help on this one.
Hi Guys,
I am experiencing stability issues on the MBED and would like your input.
Sometimes when saving my code it reboots when I touch the reset button without pressing it.
Is this normal?
Kind regards
Jesper