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.

TMS320F28388D: Flash API functions operations

Part Number: TMS320F28388D


Hi,

From TI provided Flash API functions, when the following functions will be called or used?

Fapi_issueAsyncCommand
Fapi_remapEccAddress
Fapi_issueFsmSuspendCommand
Fapi_issueProgrammingCommandForEccAddresses
Fapi_doPsaVerify
Fapi_calculatePsa
Fapi_calculateEcc
Fapi_getLibraryInfo

From document https://www.ti.com/lit/ug/spnu632/spnu632.pdf?ts=1611128437359, I couldn't get much information about these listed functions.

Can you explain when to use these functions and their functionality as well?

Thanks, 

Subha

  • Subha,

    Fapi_issueFsmSuspendCommand() - This is explained in section 3.2.5 of the flash API guide (link you referred above).  You can suspend an ongoing erase or program command using this.  You can resume the suspended operation using Fapi_issueAsyncCommand().

    Fapi_issueAsyncCommand() - This is explained in section 3.2.6.

    Fapi_issueProgrammingCommandForEccAddresses() - This is explained in section 3.2.4.  This is used when you want to program ECC data by passing ECC address to the flash API.

    Fapi_remapEccAddress() - This is explained in section 3.5.4.  This is used to convert ECC space address to the corresponding flash main array space address.  This is also used by Fapi_issueProgrammingCommandForEccAddresses().

    Fapi_calculateEcc() - This is explained in section 3.5.2.  You can provide address and data to get corresponding ECC.  Take a look at Table 7. Uses of Different Programming Modes to know the usage.  

    Fapi_getLibraryInfo() - This is explained in section 3.4.1 and is simple.  Not sure what else I can explain on this.

    Note about PSA functions: You can think of PSA (Parallel Signature Analysis) as a type of checksum.  PSA for the data in a given address range and seed value is calculated using the algorithm provided in the Appendix D.  

    Fapi_calculatePsa() - As mentioned in section 3.3.5, this function calculates the PSA for a specified region and the given seed value.  

    Fapi_doPsaVerify() - As mention in section 3.3.6, this function calculates PSA for a specified region for a seed value of "0" and compares it against the user provided PSA value.  Returns success (Fapi_Status_Success) if the use provided PSA matches with that of the calculated PSA.

    Thanks and regards,
    Vamsi

  • Subha,

    I edited this post as per your request on the other post.

    Thanks and regards,

    Vamsi