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.

TMS320F280039C-Q1: Flash API related questions

Part Number: TMS320F280039C-Q1
Other Parts Discussed in Thread: C2000WARE

Hi Champs,

I've some questions on Flash APIs as follows:

1)  When trying to flash programming with Fapi_issueProgrammingCommand() without erasing the sectors, what's the return value of this function? and is the uncorrectable bit error interrupt flag (UNC_ERR_INTFLG) in ERR_INTFLG register set in this case?

2)  In order to intentionally generate the uncorrectable bit error for diagnostic, a user wants to write some data to a specific Main or ECC address. However, Flash API can't be loaded in to RAM due to the insufficient memory. In this case, is there any way to do flash writing without Flash API?

Thanks,
Steve  

  • Hi,

    Our SME is currently OOO and will revert once he resumes office. Please expect delays in response, regret for inconvenience.

    Regards,

    Rajeshwary

  • Hi Steve,

    1) Fapi_issueProgrammingCommand() issues the command and does not wait for the command's result.  As shown below from the guide and also in the flash API usage example in C2000Ware, please use Fapi_getFsmStatus() to know the failure.  For the scenario that you mentioned, INVDAT bit (in FMSTAT register) will get set if the flash is not in erased state and the program command tries to program a "1" where a "0" is already present.

    2) Can the customer use ECC test logic described in "6.9.3 SECDED Logic Correctness Check" section of the TRM?

    Thanks and regards,

    Vamsi

  • Hi Steve,

    Do you need further support on this? Or can I assume that the issue is resolved and close this post?

    Thanks and regards,
    Vamsi