2020-08-20 12:14 AM
2020-08-20 12:46 AM
Doing that at register level is explained in the chips reference manual. For doing that at HAL level, there are examples included in the STM32Cube repository, online e.g. https://github.com/STMicroelectronics/STM32CubeF3/tree/master/Projects/STM32F303RE-Nucleo/Examples/FLASH/FLASH_EraseProgram
2020-09-02 12:28 AM
i have tried above example , but it failed during flash erase, please help
2020-09-02 03:11 AM
Which sector did you try to erase?
How exactly did it fail? How are the status bits set?
What is your hardware, a Nucleo board?
JW