View previous topic :: View next topic |
Author |
Message |
dluu13
Joined: 28 Sep 2018 Posts: 395 Location: Toronto, ON
|
Micro stuck in reset |
Posted: Fri Aug 28, 2020 12:13 pm |
|
|
Hi all,
This isn't a CCS question exactly but I'm hoping to get some info about this.
There have been a couple of instances now where I have some boards stuck in reset even though they program properly. When I start probing around, I notice that MCLR is stuck low. Here is my circuit on the MCLR pin:
https://sta.sh/02do8echup6
After removing the capacitor C8, my chip is released from reset. Do you have any ideas why this might happen? My capacitor is a 50V 0u1 capacitor so I don't think there should be any breakdowns here.
I understand the capacitor is required in order to prevent any random resets due to noise but I'd like to know why I'm getting these failures. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9229 Location: Greensville,Ontario
|
|
Posted: Fri Aug 28, 2020 12:58 pm |
|
|
random thoughts...
1) maybe a bad cap ??? rare but possible....
2) poor PCB ?? some 'semi conductive stuff' bridging the cap layout ??
3) high humidity causing a semishort ??
4) bad reset switch, kinda stays closed ??
5) it's friday and you want to fly up north for the weekend ??? |
|
|
dluu13
Joined: 28 Sep 2018 Posts: 395 Location: Toronto, ON
|
|
Posted: Fri Aug 28, 2020 1:09 pm |
|
|
temtronic wrote: | random thoughts...
1) maybe a bad cap ??? rare but possible....
2) poor PCB ?? some 'semi conductive stuff' bridging the cap layout ??
3) high humidity causing a semishort ??
4) bad reset switch, kinda stays closed ??
5) it's friday and you want to fly up north for the weekend ??? |
1) That's a lot of bad caps
2) I've had this happen on two different PCBs with different layouts now
3) You're right the humidity was horrendous yesterday (and other days during this summer). I can't exactly reproduce it though.
4) If it was my switch then the problem should have persisted after the cap is removed...
5) Fancy! Unfortunately, I'll just have to be content with a long walk along the lake. |
|
|
newguy
Joined: 24 Jun 2004 Posts: 1908
|
|
Posted: Fri Aug 28, 2020 1:55 pm |
|
|
Re: humidity. What sort of flux and/or solder paste/flux is used, and how is the assembly cleaned? Leftover flux residue + humidity can become conductive. |
|
|
dluu13
Joined: 28 Sep 2018 Posts: 395 Location: Toronto, ON
|
|
Posted: Fri Aug 28, 2020 1:58 pm |
|
|
Ok that's really useful... I used some no clean "halide" flux, and I cleaned it with a MG chemicals flux remover. It's not that great I still see a bunch of streaks on the board. You are probably right though. I hand-soldered all the stuff and there were some things acting up on a couple of these I was testing. Fixed it by reflowing some pins with the soldering iron and hitting it with some more flux remover.
I figure that the capacitor should be ok though, since the pads (0603 footprint) are so big at least compared to the MCU legs. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19516
|
|
Posted: Sat Aug 29, 2020 12:58 am |
|
|
Other thought, is obviously some form of whisker on the PCB.
What chip is involved?.
No clean halide fluxes, can be absolutely 'awful' for cleaning. Unfortunately the
chemicals used in these fluxes, can result in damp being absorbed, and dendrites
forming between the pads. In 'professional' use, these require
very accurate temperature control during the soldering process if problems
are not going to appear. Cleaning after hand soldering can be a real problem.
The white residues are normally salts, that can easily result in conduction.
Have a look at:
<https://www.aclstaticide.com/blog/why-clean-no-cleans-printed-circuit-board-flux-removal>
These fluxes are actually harder to clean than traditional systems.
Have to say, I'd not use a 'no clean' flux on boards that are being hand
soldered. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9229 Location: Greensville,Ontario
|
|
Posted: Sat Aug 29, 2020 4:23 am |
|
|
In the good ol' days, before SMT was even thought of, guy I got PCBs from in Toronto, put assembled boards in a regular house dishwasher, to remove all oils and water based flux residue(probably just water), then a heat dry cycle. Once cooled for a day, he'd test on a 'bed of nails'.
I KNOW humidity can cause 'random' problems. Had a panel work for 3 years in a rough industrial enviroment only to lose communications after a week of hot, humid weather. Culprit was a 'bad' cap used for the 24hz master clock.
I don't know how they clean SMT PCBs but that HAS to be 'high tech' as anything under devices could be a nightmare to deal with. |
|
|
dluu13
Joined: 28 Sep 2018 Posts: 395 Location: Toronto, ON
|
|
Posted: Sat Aug 29, 2020 8:10 am |
|
|
I have been using an MG Chemicals flux remover on the halide flux which appears to be an acetone based cleaner.
Are there ones that I could get that come in a large bottle format?
Should I be looking for rosin flux? Any preference between non-activated, fully activated, and partially activated rosin?
I don't particularly like flux pens because I always forget to cap them and then they dry out. |
|
|
newguy
Joined: 24 Jun 2004 Posts: 1908
|
|
Posted: Sat Aug 29, 2020 9:25 am |
|
|
Ultrasonic heated cleaners are supposed to be the standard for removal of the flux residue. Can't comment as I don't have one yet. In the meantime I use MG flux remover, a pig's hair brush, then a close inspection (microscope) and a dental pick to scrape the white salt residue away.
Seriously looking forward to the ultrasonic cleaner. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9229 Location: Greensville,Ontario
|
|
Posted: Sat Aug 29, 2020 1:44 pm |
|
|
hmm.... possible option ...
have a PCB 'house',preferably local, make them for you ??? Has to be a few in Toronto still ??
I know not cheap, but if you factor in YOUR TIME to debug, it might be an option ?? |
|
|
dluu13
Joined: 28 Sep 2018 Posts: 395 Location: Toronto, ON
|
|
Posted: Sat Aug 29, 2020 1:47 pm |
|
|
It's better to have them make it at volume... I only wanted a couple of pieces for testing. I am using pcbway for bare board manufacturing. I might try their assembly service. |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
|
Posted: Tue Sep 01, 2020 4:58 am |
|
|
It is conceivable but unilkely the capacitor is the problem. If it was, then you would be able to measure leakage across it and it would have to be serious leakage given you have a 10K pullup.
I suspect the problem is more likley to be poor positioning of the manually soldered 0605 capacitor on the pad resulting in shorting of the pads. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
dluu13
Joined: 28 Sep 2018 Posts: 395 Location: Toronto, ON
|
|
Posted: Tue Sep 01, 2020 6:45 am |
|
|
I totally believe that. I had a batch of boards that started failing after about a day or so, also stuck in reset. That time I was using 0u01 caps. After removing the cap from the board I measured the caps and they were a dead short. :( |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19516
|
|
Posted: Tue Sep 01, 2020 6:50 am |
|
|
What type of capacitor were these?. Failures like this on ceramic capacitors
would almost certainly be down to thermal stresses when soldering. |
|
|
dluu13
Joined: 28 Sep 2018 Posts: 395 Location: Toronto, ON
|
|
Posted: Tue Sep 01, 2020 8:26 am |
|
|
Ttelmah wrote: | What type of capacitor were these?. Failures like this on ceramic capacitors
would almost certainly be down to thermal stresses when soldering. |
Yeah, these were ceramic 0603 caps. I don't think I'm stressing them that hard. I keep my iron at 650F. However, when I'm soldering pads connected to planes by thermal reliefs it does take a bit longer for the solder to flow. |
|
|
|