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: FLASH_ECC issues

Part Number: TMS320F280039C
Other Parts Discussed in Thread: UNIFLASH

Hi Team,

1. The FLASH_ECC routine of STL uses the TEST mode of FLASH_ECC as a demonstration. In the customer's APP program, is it necessary to use the TEST mode during power-on self-test?

If not needed, can FLASH_ECC detection be enabled only by enabling FLASH_ECC and the corresponding interrupt?

2. In the FLASH_ECC routine of STL, the ECC value corresponding to the FLASH address and the corresponding data is calculated, which is used for the ECC test in TEST mode.

Does the customer need to calculate the corresponding ECC in their APP?

If yes, how to program it?

Is this ECC check code automatically calculated at compile time and written into the corresponding ECC_FLASH address?

3. (based on question2)

In chapter 6.9 of TRM, the part circled in red in Figure 6-3.

Is this ECC code generated by the APP itself?

Or is it generated by the compiler after compilation?

Is it stored in the address circled in red in Figure 2 of Question 2?

--

Thanks & Regards

Yale

  • Hi Yale,

    We will review and get back to you on April 10th.

    Thanks and regards,
    Vamsi

  • Hi Yale,

    Our STL developer is out of office today.  We will get back to you on this wednesday (12th).

    Thanks and regards,

    Vamsi

  • Yale,

    1. It's up to the customer to determine if they need to perform a test of the ECC logic (see FLASH6 in the safety manual) at start up in order to meet their requirements.

    2. They don't necessarily need to calculate it in the application. If the data and address used for the test are constant values then, the ECC value will be constant as well.

    3. --Could you comment on this?

    Whitney

  • Yale,

    Program: If you use flash API (Fapi_AutoEccGeneration mode) or the flash tools (CCS flash plugin, Uniflash, C2000-GANG or any other 3rd party) to program the executable in to the flash, then the ECC gets generated (by the flash API) and programmed in to the ECC space along with the data.

    Reads: When the flash content is read by the CPU, the flash wrapper will return the ECC data as well to the flash wrapper. Flash wrapper will evaluate the data and ECC.

    Please read the Flash chapter in the TRM.  

    Thanks and regards,
    Vamsi