2.4. Flash Device Block Locking

Many flash devices provide a means to lock individual blocks or groups of blocks so that they cannot be erased or written to, and in this case the default state of the flash device out of reset is usually to have all the blocks locked.

If your flash device supports block locking, you must unlock each block prior to erasing or writing to it, and should consider locking it again afterwards. The locking and unlocking must be performed in the erase and write methods in your algorithm as you process each block of data. The exact details of how to lock and unlock blocks are dependent on your flash device.

Copyright © 2007. All rights reserved.DAI0190A