AnsweredAssumed Answered

IAP flash write

Question asked by Ian Benton on Oct 4, 2019
Latest reply on Oct 8, 2019 by Sabina Bruce

Just wondering about the sequence to write to the flash. . . 

I am going to write the area between 0xA000 and 0xFFFF, 512 bytes at a time (as in one block off a SD card).

First I prepared the whole area of flash for erase (CMD 50), erased it (CMD 51),

prepared it again (CMD 50) and then wrote to it (CMD 52).

After the first 512 bytes, it returns with error 9 (not prepared).

Does that mean that I should run the prepare command EACH time I run the write command?

Is the prepare command required for the erase operation?

Outcomes