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.

[参考译文] CCS/TMS570LC4357:闪存擦除/写入问题

Guru**** 2489685 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/736330/ccs-tms570lc4357-flash-memory-erase-write-questions

器件型号:TMS570LC4357

工具/软件:Code Composer Studio

我有与  https://e2e.ti.com/support/microcontrollers/hercules/f/312/t/699129?tisearch=e2e-sitesearch&keymatch=flash%20erase 中所述类似的问题 

我发现函数 Fapi_BlockErase() 不能正常工作,内存阀不能0xfffffff。(我的应用位于0x200100,、因此在0x200000中开始的扇区应在将应用程序映像编程到0x200100)。中之前被擦除

这个问题似乎是由 ECC,造成的,似乎使用 Fapi_doBlankCheck()可以解决这个问题,但我不知道怎么做,如果有人能给我一些建议,我会很感激。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!

    请参阅(SPNU501G.pdf)闪存 API 文件夹下的用户指南:C:\ti\Hercules \F021闪存 API\02.01.01

    Fapi_doBlankCheck (uint32_t * pu32StartAddress、uint32_t u32Length、Fapi_FlashStatusWordType * poFlashStatusWord);

    起始地址为0x200000、长度应为被擦除区域或整个扇区的长度。 此函数应从 RAM 中执行。