PDA

View Full Version : nandflash,how to write full page(528bytes)


hhees
9th June 2009, 10:18 AM
hi everyone;
i have a jtag facility, msm6125 chip phone. boss need me read/write whole nand flash, page size 512+16;
i can read; but how to write oob 16 bytes? thkx for reading this.


msm6500 nand cmd

An interrupt will be generated upon each operation, except on the soft-reset, which
is done immediately.
000 : Software reset (of NAND flash controller . Ongoing operation will abort, NAND
controller will be forced into idle, and the configure register is reset to power up
default value.)
001 : page_read (Transfer one page of data from the NAND flash to the SRAM
buffer. The NAND flash page address is provided by the NAND_FLASH_ADDR
register.)
010 : flag_read (This command reads one byte from the spare area of the NAND
flash. The page address and byte address are all provided by the
NAND_FLASH_ADDR register. Some NAND flash makers, e.g., SAMSUNG, use
the spare area to mask bad blocks upon shipping. After a flag_read operation, a
reset operation is suggested before issuing a page_write command.)
011: page_write (Transfer one page of data from the SRAM buffer to the NAND
flash. The page address is provided by the NAND_FLASH_ADDR register.)
100 : block_erase (Erase one block of NAND flash memory. The block address is
provided by the NAND_FLASH_ADDR register.)
101: ID_fetch (Read the NAND flash maker ID and device ID. (This ID information
can be used to determine the actual size of the NAND device.)
110: status_check (Check the NAND flash device status.)
111: reset NAND flash memory (This reset-operation is suggested upon power-up.
This reset-operation is also suggested after a soft-reset command abort an ongoing
operation.)