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.

  • Resolved

TMS570LS1227: FEE data write problem

Intellectual 300 points

Replies: 2

Views: 64

Part Number: TMS570LS1227

Hi,

I got problem with FEE data writing. I config FEE  module wih two blocks, each are 512Bytes. Everthing is right with writing and reading except that writing to a block with all 0 after 512bytes 0xFF has been wrote in, and  there is no error return from TI_Fee_GetStatus. While, if i change a byte to non zero, that means not all 0, or calling TI_Fee_EraseImmediateBlock before writing, The data was wrote in successful.

Thanks and Regards,

Jinus

  • Guru 64330 points

    Hello Jinus,

    Your observation is correct. This is a known issue. There are 2 workaround to avoid this issue:

    1. write a dummy data (non zero or non 0xFF)

    2. disable the checksum in ti_fee_cfg.h

    #define TI_FEE_FLASH_CHECKSUM_ENABLE STD_ON -->

    #define TI_FEE_FLASH_CHECKSUM_ENABLE STD_OFF

    If Checksum is enabled, during writing of a block, Checksum of the data to be written is calculated and checked against the Checksum of the same block which is already existing in Flash. If Checksum matches, data is not written. If Checksum is not enabled, then data is compared byte by byte. If data does not match, write will be initiated.

     

    Thanks and Regards,
    QJ Wang

  • In reply to QJ Wang:

    I got it.

    Thank you very much.

    Thanks and Regards,
    Jinus

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.