2.3. Flash Device Write-Protection

Flash devices typically provide a means of write-protecting the entire device in hardware, for example with a dedicated write-protect pin. If your target hardware uses this write-protection feature then you must disable write-protection during erase and write operations and should consider re-enabling write-protection afterwards.

The safest approach is to disable write-protection only during the erase and write methods in your algorithm. An alternative is to disable write-protection globally in the flashSelect() method and re-enable it in the flashDeselect() method.

Copyright © 2007. All rights reserved.DAI0190A
Non-Confidential