首页 > TAG信息列表 > D3AMR

stm32H7 backup sram 使用

一,初始化    int BackupSRAM_Init(void){ RCC->AHB4ENR |= 1 << 28; PWR->CR1 |= 1<<8; (RCC->D3AMR) |= (RCC_D3AMR_BKPRAMAMEN); RCC->AHB4ENR |= 1<<28; PWR->CR2 |= 1; return 1;}   二,使用 uint8_t backup_buf[4096] __attribute__((at(D3_B