STM32F765VI on custom board.
SEGGER JLink SWD
I am unable to erase a sector of flash in my custom board using an STM32F765VI chip. I am using the HAL function HAL_FLASHEx_Erase(&EraseInitStruct, &SECTORError). I can step through the program and watch the registers get set properly:
I can watch the STRT bit get set, followed by the BSY bit being set. But PG does not get set and the sector is not erased. I see no error flags being set.
Can anyone offer some guidance into what may be happening?