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: Flash Memory Erase / Write Questions

Part Number: TMS570LC4357

Tool/software: Code Composer Studio

I have similar questions as described in https://e2e.ti.com/support/microcontrollers/hercules/f/312/t/699129?tisearch=e2e-sitesearch&keymatch=flash%20erase 

I found that the function Fapi_BlockErase()  was not working properly,the memory valve is not 0xfffffffff 。(my application located in 0x200100,so the sector which start in 0x200000 should be erased before program application image to address in 0x200100)。

The problem seems to be caused by ECC,That seems to use Fapi_doBlankCheck() can solve the problem ,but I don't know how to do ,I'd appreciate it if anyone could give me some advice。

  • Hello,

    Please refer to the user guide under (SPNU501G.pdf) flash API folder: C:\ti\Hercules\F021 Flash API\02.01.01

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

    The start address is 0x200000, and length should be the length of the erased area or the whole sector. This function should be executed from RAM.