Question
STM32H7B0 FLASH_SR_RDPERR in HAL_FLASHEx_Erase_IT()
Hi,
Now the problem is FLASH->SR1 report FLASH_SR_RDPERR in HAL_FLASHEx_Erase_IT() and it failed to erase the BANK1 sector1 of address 0x8002000.I have checked the RDP is level0. What wrong with it ?And the code is here:
HAL_FLASH_Unlock();
flash_erase_init.TypeErase = FLASH_TYPEERASE_SECTORS;
flash_erase_init.Banks = FLASH_BANK_1;
flash_erase_init.Sector = 1;
flash_erase_init.NbSectors = 1;
HAL_FLASHEx_Erase_IT(&flash_erase_init);
HAL_FLASH_Lock();Thanks!