2019-03-11 12:06 AM
/* 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?
2019-03-11 12:48 AM
Check power supply on VBAT pin.
2019-03-11 05:40 PM
VBAT is OK. I used the ADC3 to measure the voltage of VBAT, the value is about 3V.