k9k2g08 nand flash id读的总是不对,请帮忙,程序如下:
void checkid(void)
{
int id,id1,id2,id3;
WRITE_COMMAND(0x90);
WRITE_ADDRESS((unsigned char)0x00&0xff);
READ_DATA(id);
READ_DATA(id1);
READ_DATA(id2);
READ_DATA(id3);
printf("id=0x%x\n",id);
printf("id1=0x%x\n",id1);
printf("id2=0x%x\n",id2);
printf("id3=0x%x\n",id3);
printf("NV_Flash_ID=0x%x\n",id);
}