How to Erase STM32H7B3 internal Flash with HAL_Flash_Erase function
i see somewere that the way to erase the flash is to do this instructions.
FLASH_EraseInitTypeDef EraseInitStruct;
EraseInitStruct.TypeErase = FLASH_TYPEERASE_SECTORS; EraseInitStruct.VoltageRange = FLASH_VOLTAGE_RANGE_3;
EraseInitStruct.Banks = FLASH_BANK_1;
EraseInitStruct.Sector = FirstSector;
EraseInitStruct.NbSectors = NbOfSectors;
HAL_FLASHEx_Erase(&EraseInitStruct, &SECTORError);
the matter is that i have STM32H7B3I-DK board with code that i genérate form STM32CubeMx. But when a write these instructions; the word "FLASH_VOLTAGE_RANGE_3" is unkown by the IDE (KEIL).
