This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMAPL138 nandflash读写测试不一致



用的创龙的138nandflash例程,板子是自己做的,nandflash硬件连接相较于创龙开发板只修改了ALE,CLE的连接,从A2A1改成了A1A0,相应的在历程中只修改了地址和命令寄存器地址的偏移值:

nandInfo->dataRegAddr = (SOC_EMIFA_CS3_ADDR + 0x00);
nandInfo->addrRegAddr = (SOC_EMIFA_CS3_ADDR + 0x04);
nandInfo->cmdRegAddr = (SOC_EMIFA_CS3_ADDR + 0x08);

但是测试后发现读写数据不一致,读出来的数据在某些地方会有重复。而且暂停程序后程序停在了ECC错误的位置。其中

txData是写进去的值,rxData是读出的值。如图:


请问能知道是哪里出问题了吗?谢谢。附件是我的main.c文件