2004-02-16 05:35 AM
flash locking sequence for erase & program
2011-05-17 02:58 AM
hi,
i wanted to more about flash locking & unlocking sequece during dflashh erase & programming. Doubts: 1. what i have observed is during flash byte program, we are programming the flash byte FLASH_COMMON_X555 with 0xaa in order to un lock the main flash. Can we prorgram the same byte after unlocking it? Say In code it is defined as: #define FLASH_COMMON_XAAA (volatile unsigned char xdata *) 0xaAAA #define FLASH_COMMON_X555 (volatile unsigned char xdata *) 0xa555 So, can we program the location 0xa555. Purvi2011-05-17 02:58 AM
Yes, you can write to any location within the flash sector that you have just selected and unlocked. the unlocking sequence of writing AAh to X555h then 55h to XAAAh only writes to the internal state machine, and not to the physical flash memory locations.