Traveo TCFlash 64位写操作导致数据出错 – KBA223308 (ZH)

Version: **

 

问题:当使用TCFlash 64API (Tcflash_Write64())时,一些数据位会出错。这个问题怎么解决?

 

回答:当使能TCFlashECCError Correction Code, 纠错码),不允许一次性写TCFlash 64位。建议关闭TCFlashECC或者使用TCFlash32APITcflash_Write32())。请注意要连续的写入64位数据到TCFlash以生成正确的ECC。下面是使用TCFlash32API烧写TCFlash的例程:

// 写第10个扇区

Tcflash_Write32(0x01A10000, 0x12345678, TRUE);

Tcflash_Write32(0x01A10004, 0x01A10004, TRUE);          

关于TCFlash擦除和烧写的更多信息,请参考应用笔记AN212061 - Programming and Erasing Flash Memory by User Program for Traveo™ Family.