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.

[参考译文] RM57L843:使用F021 API擦除引导加载程序闪存,但内容不是全部0xff?

Guru**** 649970 points
Other Parts Discussed in Thread: TMS570LC4357, RM57L843
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1096082/rm57l843-bootloader-erase-flash-using-f021-api-but-the-contents-are-not-all-0xff

部件号:RM57L843
主题中讨论的其他部件:TMS570LC4357

TI工程师您好:

引导加载程序使用F021闪存库对闪存进行编程或擦除。

当我擦除闪存位置后,我们不会看到所有位置都有0xFF,擦除闪存位置中的其他一些位为零。

 来自TMS570LC4357:使用F021闪存API库擦除闪存不会将所有擦除的闪存位置显示为0xFFFFFFFF -基于ARM的微控制器论坛-基于ARM的微控制器- TI E2E支持论坛

我 知道这可能是由于闪存ECC问题,但不确定在使用F021库擦除闪存时,要调用哪个功能来启用ECC或自动生成ECC。

在bootloader程序中, 我使用API Fapi_issue3cCommandWithAddress(,FlashStartAddress)来使用闪存,使用API Fapi_issueProgrammingCommand(,,,,NULL ,0U,Fapi_AutoEccGeneration)来对 闪存进行编程

我不会对闪存的所有扇区进行编程,但我CRC会检查整个闪存。 因此,当可以对地址进行编程时,该值不是0xff。 CRC检查发现故障。

请告诉我如何解决问题。