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/TMS320F28379D: Not able to program flash sector N

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

Hi,

I am using F28379D exp kit and CCS 8.3.

I am trying to program the flash sector using the flash APIs. I have added flash API library "F021_API_F2837xD_FPU32.lib" in my CCS project and calling the API function "Fapi_issueProgrammingCommand" with the parameter "Fapi_AutoEccGeneration".
When i tried writing the flash sector M, it was successful and able to write the data in the flash location.

With the same api function, I tried programming the location "0x0BE0C2" (Sector N). but this time it was not successful. Why it did not write the data in sector N. Did i miss anything?

Before performing the flash operation, flash location was filled with 0xFFFF.

Regards,

Munaf

  • Munaf,

    What is the error that you got from the Flash API program function when you tried to program at 0x0BE0C2?  

    You said you are using Fapi_AutoEccGeneration.  In that case, you should use 64-bit aligned address and program all the 64-bits at once (since ECC is calculated for 64-bits).

    Please take a look at Flash API wiki https://processors.wiki.ti.com/index.php/C2000_Flash_FAQ 

    Flash API user guide http://www.ti.com/lit/ug/spnu629a/spnu629a.pdf

    You also mentioned that you filled the Flash address with 0xFFFF before programming.  Did you mean you erased the sector OR did you program 0xFFFF?  Please note you need to erase the sector.  You can not program a Flash location which you already programmed. 

    Thanks and regards,
    Vamsi