2022-08-02 05:45 AM
Hi everyone,
We are trying to program the MCU flash memory to write and save some data on it.
After successfully writing to a single sector, we can't delete the sector content anymore.
We are using HAL_FLASHEx_Erase to delete the sector.
In particular, we use the ideas in this article https://controllerstech.com/flash-programming-in-stm32/
Thanks in advance.
2022-08-02 05:59 AM
Are you asking a Question, or making a statement?
Well the HAL FLASH functions do work properly on the F767's, so perhaps review the Reference Manual, or looks at the examples provided in CubeF7 for the board..
2022-08-03 12:28 AM
Asking a question...
Correction to the original post - after a single write(that might have failed) to a sector, when we try to write/overwrite the same sector we fail. Already read the Reference Manual (and I'm sure the HAL FLASH functions work properly), hence looking for advice on how to proceed from here/ things to think about that we might have missed.
2022-08-03 12:32 AM
Recomended reading RM0410
I have never used an F7, what about the single/dual bank bits?
2022-08-03 12:33 AM
every time you want to write FLASH, the entire flash page needs to be erased.
What i usually end up doing is:
2024-03-31 04:26 AM
For dual bank information you can use this resource:
STM32F7 Series Flash memory dual bank mode, software expansion for STM32Cube (AN4826)