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.

CCS/LAUNCHXL-TMS57004: TMS570 FEE Stucks

Part Number: LAUNCHXL-TMS57004
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Hello Everyone,

I am trying to read a value that I have written to FEE of TMS570. I have totally a strange error.

My Code Diagram is Like That:

Read_Value_From_FEE(void);

printf("FINISHED\r\n");

As you can see in the figure below, it reads data in the FEE and comes to end of the function and stops since I put a debugger on that. When I press F8 which means proceed it never prints FINISHED and stucks somewhere in there. I could not understand. The situation is same when I remove debugger. It stucks.

Any help will be appreacited.

Thanks.

void main(void)
{


    uint16 sistem_sayac=0;

    SOC_from_EEPROM = read_SOC_from_FEE();


    printf("FINISHED\r\n");

  • Hello,

    Read Margin1 is designed for early detection of marginally erased bits. Please use standard normal read.

    The flash bank7 is used as EEPROM. The HALCoGen generates the FEE drivers for EEPROM erase/program/read. Please use FEE driver for EEPROM operations. Thanks

  • Hi Wang,

    Thanks for you reply. I am trying to use the library? I wamt to check whether I ahve managed to write data by looking memory browser. Can you tell me whihc address do I need to check for BLOCK NUMBER = 0x01?

    Thanks

  • Hello,

    If you use FEE driver to write and read block, you don't need to know the address of the block. For example,

    To write a block to EEPROM:

    TI_Fee_WriteAsync(BlockNumber, &BlockData[0]);

    To read the block from EEPROM:

    TI_Fee_Read(BlockNumber, BlockOffset, Length); if offset =0, read from the 1st byte.

    The FEE user guide is located in /doc folder of HALCoGen installation directory