|
我每次读写后都调用getecc,发现ECC数据不变啊.还有什么要注意的吗?
初始化允许ECC啦,ECCPAGE设置2K
FSMC_NANDInitStructure.FSMC_ECC = FSMC_ECC_Enable;
FSMC_NANDInitStructure.FSMC_ECCPageSize = FSMC_ECCPageSize_2048Bytes
MAIN中:
FSMC_NANDECCCmd(FSMC_Bank2_NAND,DISABLE);
FSMC_NANDECCCmd(FSMC_Bank2_NAND,ENABLE);
status = FSMC_NAND_WriteLargePage(TxBuffer, WriteReadAddr, 2048/*PageNumber*/);
Ecc = FSMC_GetECC(FSMC_Bank2_NAND);
FSMC_NANDECCCmd(FSMC_Bank2_NAND,DISABLE);
FSMC_NANDECCCmd(FSMC_Bank2_NAND,ENABLE);
status = FSMC_NAND_ReadLargePage (RxBuffer, WriteReadAddr, 2048);
Ecc = FSMC_GetECC(FSMC_Bank2_NAND);
6楼帮指点一下 |
|