AnsweredAssumed Answered

Unable to erase flash sector in STM32F765VI

Question asked by Mike Hooper on Sep 18, 2017
Latest reply on Nov 2, 2017 by Curt Black

STM32F765VI on custom board.

Atollic TrueStudio

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:

LOCK=0

SER=1

SNB=7

PSIZE=2

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?

 

Thanks,

MikeH

Outcomes