2017-12-11 06:14 AM
Hello,
we're currently investigating a problem with one of our products, which seems to stall sporadically at a customers site. The used controller is STM32F103VE. I've detected at least one potential problem in our design, because VSSA/VDDA are seperated from VSS/VDD by an independant, galvanically isolated 3.3V power supply.
Of course, the manuals point out that these power supply domains should be connected. But what are the possible problems if this was done wrong as in our design? Could this cause a stalled controller?
#stm32f103xx #grounding2017-12-12 12:44 AM
The requirement to have them connected (or be within a small margin to each other, 50mV or so, see DS) is there for a reason. I'd expect problems up to damaged chip if the VSS-to-VSSA and/or VDD-to-VDDA differences are larger than a few hundreds of mV.
JW
2017-12-12 02:30 AM
Galvanically isolated supplies make no sense IMHO.
VSS and VSSA are definitely connected internally. They have just separate terminals to avoid transverse currents through analog components.
2017-12-12 03:02 AM
VSS and VSSA are definitely connected internally.
Not necessarily in a low-ohmic resistive way, see the 50mV allowed between VSS and VSSA ( in a more general way, specified as |VSSX − VSS| ) by DS (read: there may be a silicon protection structure between them, for example, and otherwise isolated).
JW
2017-12-12 05:54 PM
Have you checked the rise times on your 3.3V power supplies? The analog section is also used with the PLL so your suspicion does fit, possible the clock isn't running or something in RCC is damaged. Or you may be coming out of reset with VDD above threshold before the VDDA is in spec. As I recall there's a minimum VDDA voltage when the BOR threshold starts the core, but not sure about the F1 series, haven't used them in several years.
Jack Peacock
2017-12-12 11:23 PM
Perhaps true, I can't look into the silicon ...
However, isolated supplies easily differ hundreds of millivolts or some volts, with transverse currents disrupting functionality.
Recently had such a case, were a diode between different 'GND' potentials caused communication errors.
2017-12-14 02:49 AM
Thanks for your help.
Yes, I'm with ​ regarding the nonsense of a galvanic isolation at this point. It's a faulty design and we won't do that again. The question is if this explains the problems that our customer gets with our device.
I haven't checked the 3.3V rise times yet, but that's a good hint. On the other hand, the problem occurs at an indefinite time after the device is up and running.
2017-12-14 03:12 AM
Problems occur when the potential difference exceed a threshold level.
And Jack Peacock might be right about the primarily affected peripherals, I have never experimented in that direction.
However, have you already ruled out a software issue ?
Stack overflows or race conditions involving interrupts can be as spurious as mains/power supply interferences.
2017-12-14 03:14 AM
The question is if this explains the problems that our customer gets with our device.
We can't give you a definitive positive answer of course. This depends on whether the particular circumstances at your customer might have resulted in sufficient potential voltage.
We just can say that yes, this might have resulted in problems.
JW
2017-12-18 02:15 AM
We haven't found a matching software issue yet, but this is still under investigation.