When programming external memory, you typically need to erase the flash memory before programming it.