puneetnepsam
Junior Member level 3
hi All,
i have written a driver for programming the flash M29w128GL.
WRITE_FLASH(0x555,0xAA);
WRITE_FLASH(0x2AA,0x55);
WRITE_FLASH(0x555,0xA0);
WRITE_FLASH(0x000,0x20); //writing 0x20 to the address 0x00
the first two cycles of write is for unlocking the flash and and third one is the code for programming.
the fourth cycles writes to the address, the data.
But programming is not happenning.
i think some problem with the protection command. may be i have to unprotect the flash, but no such command is mentioned in the datasheet.
i have attached the datasheetwith this message.
can anyone please help out me!!
Thanks
i have written a driver for programming the flash M29w128GL.
WRITE_FLASH(0x555,0xAA);
WRITE_FLASH(0x2AA,0x55);
WRITE_FLASH(0x555,0xA0);
WRITE_FLASH(0x000,0x20); //writing 0x20 to the address 0x00
the first two cycles of write is for unlocking the flash and and third one is the code for programming.
the fourth cycles writes to the address, the data.
But programming is not happenning.
i think some problem with the protection command. may be i have to unprotect the flash, but no such command is mentioned in the datasheet.
i have attached the datasheetwith this message.
can anyone please help out me!!
Thanks