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.

LP-AM243: broken data are sent by FoE

Part Number: LP-AM243

Tool/software:

Hi Team,

I'm developing application for LP-AM243x using "ethercat_slave_demo" of 401_simple in the SDK ver.09_02_00_15.

When sending binary data from master using FoE,

the pData received from EC_SLV_APP_FoE_fileWrite are different.

(example)

sending data : 308206723082045aa

received data: 308145723081455aa

 While, sending Text data, pData are same as original.

Do you have any reason why it's happening?

 

Best regards,

Oyama

  • Hello Oyama,

    Basically, the FoE data received from the EtherCAT MainDevice or TwinCAT should be same as upload file data irrespective of its a binary file or a text file.

    Could you please provide us more information regarding this issue? 

    - The binary file that you have tried to upload via FoE.

    - How are you verifying the pData from EC_SLV_APP_FoE_fileWrite()

    Have you downloaded the complete file (uploaded previously) via FoE and then compared the files or just compared the part of data during the upload activity? 

    Kind Regards,

  • Hello Harsha,

    I tried to send ".release.appimage.hs_fs" file in the ti-arm-clang folder. These data are same as Flash ROM data from 0x80000.

    I verified original data using binary editor and reading Flash ROM data from offset 0x80000. Both data are same.

    Then, I verified received pData in the Memory Browser of CCS, or saved it temporarily in Flash ROM and read it. 

    Both data in the address pData and reading data from Flash are same (but endianness is changed).

    Best regards,

    Oyama

  • Hello Oyama,

    You had mentioned that there is a data mismatch. Does this issue still exist at your end?

    sending data: 308206723082045aa

    received data: 308145723081455aa

    Could you please share us the screenshot which shows the endianness change?

    Does endianness change issue seen for text files also?
     
    Could you please compare the binary files (small sized just for testing) which were downloaded and uploaded via FoE to check if endianness change exists?

    Kind Regards,

  • Hello Harsh,

    It was my mistake, before FoE, I opened file by memo pad and saved it, then file encoding was changed expect Text section.

    I send data 30 81 45 72 30 81 45 5A A0 03 02 01 ......., then pData like this.

    I think this endianness change seems fine.

     

    Best regards,

    Oyama

  • Hello Oyama,

    Thanks for the response.

    If your issue is resolved, then we can close this ticket.

    Kind Regards,