When trying to clear data flash, I run the following commands:
BlockWrite,0x35,0xE2,0x0400000104
BlockWrite,0x35,0xE3,0x00008820
BlockWrite,0x35,0xE2,0x0414000104
BlockWrite,0x35,0xE3,0x00000100
Pause,250,Pausing 250 ms
BlockRead,0x35,0xE3
However, often the BlockRead of 0xE3 at the end returns 0x00000900 or 0x00000000. Worse yet, sometimes the data flash is not always cleared.
Am I missing something in the write command? How can I ensure the clear data flash command is being run correctly?