cancel
Showing results for 
Search instead for 
Did you mean: 

how to read and write to internal flash in STM32f303CB .

OBEHE.1
Associate II
 
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
KnarfB
Super User

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

i have tried above example , but it failed during flash erase, please help

waclawek.jan
Super User

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