我所用nand的型号与id在附件中,但是我读到的是C010203,请问这个可能是什么原因造成的?
而且这个读到的ID是不是每一位有什么含义啊?
谢谢您的解答
Shine:
看一下下面的wiki网站说明,可以更好地理解ID的含义。
http://processors.wiki.ti.com/index.php/Determining_compatibility_between_ROM_Bootloader_(RBL)_and_Raw_NAND_devices#Methods_used_by_NAND_manufacturers
chengyuan ma:
回复 Shine:
非常感谢!!!
还有就是在做擦写操作的时候,下面的ALE是怎么算出来的?
NANDFLASH_CLE = CMD_ERASE; NANDFLASH_ALE = (blocknum & 0x0003) << 6; NANDFLASH_ALE = (blocknum & 0x03fc) >> 2; NANDFLASH_ALE = (blocknum & 0x0c00) >> 10;
NANDFLASH_CLE = CMD_ERASE_CONFIRM;
NANDFLASH_CLE = CMD_PROGRAM; NANDFLASH_ALE = 0x00; NANDFLASH_ALE = 0x00; NANDFLASH_ALE = pagenum & 0xff; NANDFLASH_ALE = (pagenum & 0x00ff00) >> 8; NANDFLASH_ALE = (pagenum & 0x030000) >> 16;