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: What is the PSA functionality in flashapi functions?

Part Number: TMS320F28388D


Hi,

From Flash API functions, what is the functionality of the below mentioned 4 functions?

  1. Fapi_doPsaVerify
  2. Fapi_calculatePsa

I referred SPNU632 document for PSA functionality. But I couldn't get to know the functionality of the above mentioned functions.

Can you explain these and refer other documents for detailed study?

Thanks,

Subha.

  • Subha,

    Please check the appendix of SPNU632 - It has a section on the PSA algorithm (Parallel Signature Analysis).

    The functions Fapi_calculatePsa() and Fapi_doPsaVerify() make use of the Parallel Signature Analysis (PSA) algorithm. Those functions are typically used to verify a particular pattern is programmed in the Flash Memory without transferring the complete data pattern.

    You don't need to use the PSA functions.  A few customers asked us to integrate that functionality in to flash API for their use and hence documented.  It has nothing to do with flash erase/program/verify operations.  Some customers use it as a checksum.

    Thanks and regards,
    Vamsi

  • Hi,

    Thanks for the reference!

    We have created our customized RTL library for all Flash API functions.

    We need to verify PSA functionality as well.

    Can you explain the test cases to verify that?

    Thanks,

    Subha

  • Subha,

    I understand.  But, in your application, are you going to use these functions?  Please note that the function will not be included in the .out file unless it is called (I know you used the same compiler settings that I used).

    Thanks and regards,
    Vamsi

  • Hi Vamsi,

    But if we remove psa.c from the flash API library and compare it with TI, it will be different right!

    So my doubt is, if we create our library, which is not tested in the TI facility. 

    Can we compile the flash api library as our required needs and use it for aerospace application?
    Regards
    Gurusha
  • Gurusha,

    I am not asking you to remove the PSA.c.  Also, I did not suggest you to compile flash API as per your required needs.  

    What I am saying is this:  Flash API compile settings turned ON the "Place each function in a separate subsection" feature.  You can see this in project Build settings -> C2000 Compiler -> Advanced Options -> Runtime Model Options.

    Since this is enabled, only the functions that you use from the library will become part of your .out file (entire flash API library will not be included in your .out file).  Hence, if you are not using the PSA functions in your application (meaning -> if PSA functions are not called in your application), those functions will not be included in your application.  Then why do you want to test them?

    Thanks and regards,

    Vamsi

  • Subha,

    Based on your request on the other post, I edited your first message in this post as well.

    Thanks and regards,
    Vamsi