STM32F746 Flash Sector Erase Problem
Hi Guys,
I have a problem with erasing Flash sector. I am using STM32F746ZG Nucleo Board. When I run this code, mcu works perfect it works but I can't install new firmware to mcu. I've also tried example code, same problem. I take (DEV_TARGET_NOT_HALTED) when I run the program.
I am getting the same error in debug mode as described in the link below.
Code Here they are
FLASH_EraseInitTypeDef FLASH_Erase_Init;
uint32_t SectorError;
HAL_FLASH_Unlock();
FLASH_Erase_Init.TypeErase = FLASH_TYPEERASE_SECTORS;
FLASH_Erase_Init.VoltageRange = FLASH_VOLTAGE_RANGE_3;
FLASH_Erase_Init.Sector. FLASH_SECTOR_3;
FLASH_Erase_Init.NbSectors = 1;
if(HAL_FLASHEx_Erase(&FLASH_Erase_Init, &SectorError) == HAL_OK)
HAL_Flash_Lock();
How can i solve it ?
