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.

关于AM335x的ECC校验码的生成

Other Parts Discussed in Thread: AM3354

     各位好,本人正在学习使用AM3354这个芯片,在使用CCS7.1.0调试starterware中的Nand Flash的程序的时候,在nandlib.c中有这样的一个函数:

      NandStatus_t NANDPageWrite(NandInfo_t *nandInfo,  

                                                         unsigned int blkNum,

                                                         unsigned int pageNum,

                                                         volatile unsigned char *txData,

                                                          unsigned char *eccData); 

  我想问一下,关于这个eccData的生成,我有以下几个问题:

 (1).  starterware中是否有生成eccData的程序?如果存在的话,我该在哪里找到这部分的程序。

 (2). 如果在starterware中没有关于eccData生成的这部分的程序,假设我使用的Nand Flash的1个page =(4K+224byte)(4K是数据区,224byte是OOB区);我使用哪种方式生成OOB数据呢?