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.

TMS570LS3137: HALCoGen FEE example unable to initialize (fapi_Error_OtpChecksumMismatch)

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

Using part TMS570LS3137, HalCodeGen version 04.07.01, F021 version 2.01.01 against library file F021_API_CortexR4_BE_L2FMC_V3D16_NDS.lib I am unable to initialize the flash.  HalCodeGen settings are identical to the linked question with the exception of a HCLK speed of 180.00.  I also have a pre-defined symbols set to define _L2FMC for the project.  Using the code from the example example_TI_Fee_Write_Read.c I am never able to get an IDLE status from the FEE after calling TI_FEE_INIT().  When diving into the initialization function, I can see that the call to Fapi_initializeFlashBanks returns a value of fapi_Error_OtpChecksumMismatch.  

  • Hi Ben,

    You can find FEE example in HALCoGen itself.

    Go to the "Help Topics" section in HALCoGen:

    Now in Examples section you can find FEE example:

    Here they explained in detailed with step-by-step procedure along with the example code.

    Just follow those steps.

    --
    Thanks & Regards,
    Jagadish.

  • Thanks Jagadish,

    I think I was confusing myself with information from the spnu501h.pdf which had me thinking I had to use L2FMC.  Once I switched to linking against F021_API_CortexR4_BE_V3D16.lib instead of F021_API_CortexR4_BE_L2FMC_V3D16.lib and removing the _L2FMC pre-defined symbol then the example works as expected.