2017-06-09 01:53 PM
I'm trying to set-up a STM32F091 with a battery connected straight into the VBAT pin. For the first couple times I turned on this vbat at 3v, It worked ok(no weird behavior). However, after trying to program the MCU via SWD, this VBat pin became a low impedance path to ground(around 150 Ohms) sinking 20mA. At first I thought this low impedance path was in my board, but then I removed the mcu and measured the resistance on the chip between pins VBAT and Ground, getting 159 ohms as a result. This problem manifested itself in two different chips and similar resistances were measured.(150 and 250 ohms)
I'm inclined to believe this is a problem, since the VBat domain is supposed to power the RTC and back-up register, definitely not sinking 20mA @ 3v. I have not found any information on the device errata sheet and the data sheet says this pin draws uA's when powering the RTC domain.
The circuit is a straight connection between the battery and this pin. All others power pins are connected according to the datasheet. An interesting fact is that the ADC channel 18(ADC_IN18) measures the voltage on VBat pin correctly.
Have anyone experienced this before? Am I missing something when using Vbat or is this a configuration issue?
#vbat-battery-backup #stm32f0 #stm32-vbat-rtcSolved! Go to Solution.
2017-06-10 08:39 AM
This is impossible for a healthy STM32F0, I'm afraid ur mcus are damaged somehow.
I am just using F091 and making use of its low power mode.
Even in the beginning I connect VBAT directly to VCC, (of course VCC is regulated.)
In stop/standby with RTC on mode, the whole mcc sinks only about few uA from 3.3V VCC.
By the way, check the following values from datasheet
1 To exclude custom board hardware issue, I would first use a nucelo board, disconnect VBat and VCC, and perform the current measurement.
2 If Nucleo board works fine, I would check on the custom board:
VBAT and VCC(and some other power pin) isolation,
VBAT to Gnd impedance, and
LSE circuitry.
VBT draws current only when VCC is not present, and it powers RTC, oscillator and backup register only.
Good Luck!
2017-06-10 08:39 AM
This is impossible for a healthy STM32F0, I'm afraid ur mcus are damaged somehow.
I am just using F091 and making use of its low power mode.
Even in the beginning I connect VBAT directly to VCC, (of course VCC is regulated.)
In stop/standby with RTC on mode, the whole mcc sinks only about few uA from 3.3V VCC.
By the way, check the following values from datasheet
1 To exclude custom board hardware issue, I would first use a nucelo board, disconnect VBat and VCC, and perform the current measurement.
2 If Nucleo board works fine, I would check on the custom board:
VBAT and VCC(and some other power pin) isolation,
VBAT to Gnd impedance, and
LSE circuitry.
VBT draws current only when VCC is not present, and it powers RTC, oscillator and backup register only.
Good Luck!
2017-06-12 06:58 AM
The circuit is a straight connection between the battery and this pin.
Read the warning in the STM32L09 Reference Manual section on Battery Backup Domain (probably Section 6.1.2). Is your battery at or more than 0.6V below VCC?
Cheers, Hal
2017-06-13 07:25 PM
Using two AA batteries Vbat around 2.6V.
Turn VCC off, here.with VCC On.
VBat to Gnd impedance, there are few Mega Ohms.
As for your horrible mA current consumption....
Suppose you mcu is healthy and your board is correctly lay out.
Is it possible that your current measuring tool is problematic?
Can you test it with a reference current, like a current source?
2017-07-18 10:46 AM
Thank you all. Actually the issue was a problematic PSU damaging the MCU ->
https://electronics.stackexchange.com/questions/310059/stm32f091-vbat-pin-sinking-a-lot-of-mas