flash erase function

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

flash erase function

849 Views
mehdikarimibiuk
Contributor V

n/a

Labels (1)
Tags (2)
0 Kudos
4 Replies

465 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Mehdi,

 

When erasing or programming a Flash block, the internal charge pump is turned on, and during such time, the memory is not accessible; therefore, you will get errors if you call the Flash erase/write routines from the same memory block that will be erased/written. In order to avoid these issues and like Li mentioned, these routines should be running on RAM, or, if the MCU has dual Flash array, the routines should be running from the other Flash array.

 

Hope this will be useful for you.

Best regards!

/Carlos

0 Kudos

465 Views
mehdikarimibiuk
Contributor V

n/a

0 Kudos

465 Views
mehdikarimibiuk
Contributor V

n/a

0 Kudos

465 Views
oliver_chen
NXP Employee
NXP Employee

Do you mean you want to erase program flash area not FlexNVM? If yes, please make sure your code is in RAM area not in code flash area.

0 Kudos