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.

RM48L952: HALCoGen FEE example stuck waiting on TI_Fee_GetStatus()

Part Number: RM48L952
Other Parts Discussed in Thread: HALCOGEN

Hi.  I am trying to get the HALCoGen FEE example to work with the RM48 HDK (RM48L952ZWT).  The program loops forever waiting for the call to TI_Fee_GetStatus() to return IDLE.  It always returns 0.

The example is code is from: C:\ti\Hercules\HALCoGen\v04.07.00\examples\RM48x\example_TI_Fee_Write_Read.c

It is linked with the F021 little endian library recommended: F021_API_CortexR4_LE_V3D16.lib.

The relevant screen shots from HALCoGen are:

I am using the IAR IDE. The screen shot below shows point where the code loops forever. 

Please recommend how I should proceed. I will need to save parameter data to flash in our target design and proving it can work on this demo board is necessary. Thank you.

  • Hi Shawn,

    Can you remove the delay in do-while() and try again?

    TI_Fee_Init();
    do
    {
    TI_Fee_MainFunction();
    }while (TI_Fee_GetStatus(0) != IDLE);

    What is the MPU setting for FEE memory? Is it protected? What is the wait state settings for flash/EEPROM? Your CPU frequency is 220MHz, the ewait should not be less than 3. Please check the register: EEPROM_CONFIG
  • Thank you for your reply. I am not sure exactly what I was doing incorrectly in the example. But I now have flash working OK in my target project. I will close this issue.