cancel
Showing results for 
Search instead for 
Did you mean: 

how to read and write to internal flash in STM32f303CB .

OBEHE.1
Associate II
 
3 REPLIES 3
KnarfB
Principal III

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

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