This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F28M35M52C: Flash sector access issue

Part Number: F28M35M52C


We are using the Flash APIs in the F28M35M52C Concerto controllers. 

We have configured the settings to access the Sector B in the .cmd file.

The sector B stores information which is required during firmware upgrade and should not be erased after the first programming.

In order to achieve we disable the erase sector for sector B in the project settings.

With this settings, we face the following issue:

a) We are able to write to the sector B only once after the first erase. Once the sector B is written with some value, the next execution of the program is not able to write any value to that sector.

b) If we enable the erase sector option, we are able to write every time to the sector successfully (but that is not the desired behavior).

Is there any register which needs to be updated? Or any configuration to be set to make the sector Read/Write forever without erase.

We use the Flash APIs from SRAM. This is for the MCU core.