Skip to main content
ZYubi
Associate III
March 11, 2019
Question

H750VBT6 BKPSRAM can't keep DATA

  • March 11, 2019
  • 1 reply
  • 809 views

 /* Enable write access to Backup domain */

 PWR->CR1 |= PWR_CR1_DBP;

 while((PWR->CR1 & PWR_CR1_DBP) == RESET)

 {

 }

 /*Enable BKPRAM clock*/

 __HAL_RCC_BKPRAM_CLK_ENABLE();

  

 *(__IO uint32_t*)(0x38800000+36) = 12345678;

run to here, DATA 12345678 is written to adress 0x38800000+36 , but I reset the chip,the DATA in adress 0x38800000+36 has been changed,I don't konw what's the reason?

This topic has been closed for replies.

1 reply

oleksandr.karbivsky
Senior II
March 11, 2019

Check power supply on VBAT pin.

ZYubi
ZYubiAuthor
Associate III
March 12, 2019

VBAT is OK. I used ​the ADC3 to measure the voltage of VBAT, the value is about 3V.