Skip to main content
TALHA
Associate II
May 30, 2023
Solved

Bootloader not Jumping to Application without Vbat.

Hi everyone,

I am working on a custom STM32F401 board and came across a strange problem. I have a coin battery connected o Vbat pin of the MCU and using custom bootloader with it. Everything works fine but once I remove the battery (no voltage in Vbat). The bootloader refuse to jump to firmware and get suck. I could not find any evidence that MCU need voltage on Vbat Pin all the time to work properly. Could anyone help me to figure out the issue? I shall be very thankful.

This topic has been closed for replies.
Diane POMABIABest answer
ST Employee
May 31, 2023

Hi @TALHA​ 

To ensure proper operation of this product, we have to supply the VBAT with at least 1.65 V and maximum 3.6 V.

Regards

DianeP

7 replies

Tesla DeLorean
Guru
May 31, 2023

Check for code where you might get stuck in a while(), or end up in ErrorHandler() or HardFault_Handler() instrument those so you'll know...

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Diane POMABIABest answer
ST Employee
May 31, 2023

Hi @TALHA​ 

To ensure proper operation of this product, we have to supply the VBAT with at least 1.65 V and maximum 3.6 V.

Regards

DianeP

TALHA
TALHAAuthor
Associate II
June 1, 2023

Hi Diane,

I understand your point but there is a PDR (power down reset) present in STM32F MCUs. It states that Vbat Voltage will be switched to Vbat external battery voltage if Battery is present, Otherwise it will use VDD (see the figure below). Please correct me if my understanding is wrong.


_legacyfs_online_stmicro_images_0693W00000dJpsmQAC.png

ST Employee
June 1, 2023

Hi @TALHA​ 

It's not in this sense that it works the Back up domain can be powered by the VDD or the VBAT by default it's on the VDD. When the VDD drops below the selected VBOR threshold, the VBat takes over and feeds the domain backup. By leaving your VBat pin floating, you're in a configuration in which we can't guarantee the product's proper operation.


_legacyfs_online_stmicro_images_0693W00000dJpthQAC.pngIf you don't have anything to maintain in the backup domain, you can connect your VDD to your VBAT.

Regards

DianeP