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.

Questions about FEE EEPROM read and write... TMS570LS1227

Other Parts Discussed in Thread: HALCOGEN, TMS570LS3137, TMS570LS1227

Hi


Here are some questions about the EEPROM reading and writting ...


1. I notice that the read function of EEPROM TI_Fee_Read( ) can be called with the "offset" parameter, but the TI_Fee_WriteAsync(uint16 BlockNumber, uint8* DataBufferPtr)" without the "offset" parameter. Is there any other function with "offset" parameter for EEPROM writing. If no,,,why? :(

2. My setting data is about 2K bytes, and I save them in one data structure. And when just one member of the setting is changed, I must write the whole structure back into the one EEPROM data block. and when I need add some new setting members some day, maybe I need to again increase the block size in the HALCoGen.


Is this the generic way for setting data read/write? Is there any other better way for so many setting datas operation?

  • Hi user4397545,

    1. I believe this is because a call to TI_Fee_WriteAsync() writes the entire block, if any of the data within the block needs to be changed.

    2. yes you probably should reconsider how you are grouping your data and split the structure into different blocks if possible. For the most frequently updated data you would want them in very small blocks. Infrequently updated data could be kept in one larger block.

    There's actually a PDF userguide that is installed in the docs folder of HalCoGen, "TI FEE User Guide.pdf' if you haven't found it already.
  • Hi Seely,

    Thanks so much for your reply.

    And I will re-organize my data structure as you said :)

    I have got the "TI FEE User Guide.pdf" and I find that all the FEE write functions ( TI_Fee_WriteAsync()/ TI_Fee_WriteSync()) has no "offset" parameter, and there are no other functions for FEE writting, am I right ?
  • Hi user4397545,

    yes those would be the only two writes and they write a block, so no offset parameter.

    you could consider the TI_Fee_EraseImmediateBlock, TI_Fee_InvalidateBlock, TI_Fee_Format as writing to the FEE but of course they don't write your *data* - they would still operate on the flash and change it's state.
  • Got it!

    Thanks so much!
  • Dear All,

    Currently I am using TMS570LS3137. I am trying to save ADC reading Data in to EEPROM of TMS570LS3137, I believe TMS570LS1227 is similar with TMS570LS3137.
    I have read the example from Halcogen about example_TI_Fee_Write_Read.c. Since I newly use TMS570LS3137, I dont understand how to save my ADC data to EEPROM. Is there any one in here could guide me how to do it? whether in halcogen setting or in ccs?
    Is there any one could help me?

    I will very appreciate your kindly help.

    Thank you very much.

    Best Regards,

    Lukman