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.

TMS570x: EtherCAT endianess issue

Hi All,
We are having the similar issue related to the problem described in the original thread.
 e2e.ti.com/.../431713 endian

Please dont assign and leave as it is. We are looking for the solutions.

We have created the project with Hercules RM-Series Microcontroller+EtherCAT. This project is working correctly.
When we tried to rebuild the same project with Hercules TMS570-Series Microcontroller+EtherCAT.This project is partially working.
 (ie)Esc_HWInit() is working. We have checked in the deugger. TwinCAT = It is in Init Error mode.
 We have selected the BIG_Endian_Format in SSC Code configuration files correctly.
 
 Texas Instruments RM-Series Microcontroller based upon Little endian
 Texas Instruments TMS570-Series Microcontroller based upon Big endian

TMS570-Series Microcontroller+EtherCAT = Partially working....TwinCAT = It is in Init Error mode.

Will the SWAPWORD and SWAPDWORD settings needs to be manually incorporated SSC auto generated files?
Could you please give your valuable comment to get into my system into "PREOP Mode" "OP Mode"?
Thank you

Regards,
S.Saravanakumar

  • Hi Saravanakumar,

    You mention several acronyms in your post that I am unfamiliar with. Also, are all the software packages compiled for use with a Big Endian (BE-32) processor? The entire code project needs to be recompiled to move from RM MCU to a TMS570 MCU. Which specific parts are you working with?

    Regards,
    Sunil
  • Dear Sir,

    Please let me know, what are the acronyms are not familiar. I will give you the feedback.

    Already, we have compiled the complete SW in CCS-TMS570.

    Can you please send me the details to this E-mail id: saravanakumar.s@tsts.in ?

    I can able to give all the details.

    Thank you.

    Regards,

    S.Saravanakumar

  • Hi Saravanakumar,

    Which RM and TMS570 parts are you using? Also, are you using an EtherCAT transceiver with an SPI interface to connect to the RM/TMS570 part?

    All software running on the TMS570 must be compiled with the --be32 switch in the compiler, which can be enabled via the GUI in CCS as well.

    What error do you see when executing the code on TMS570?

    Regards,
    Sunil
  • Dear Sir,

    Below are the feedback,

    Also, are you using an EtherCAT transceiver with an SPI interface to connect to the RM/TMS570 part?

    S.Saravanakumar: Yes. We have used the SPI interface.


     All software running on the TMS570 must be compiled with the --be32 switch in the compiler, which can be enabled via the GUI in CCS as well.

    S.Saravanakumar: In CCS, by default compiler settings enabled. Some part of the coding is working.

    What error do you see when executing the code on TMS570?

    S.Saravanakumar: We are suspecting the TMS570 Interrupt code part. I can share the complete project code and other details offline. I have given my Email id. Please send the test mail.

    Regards,

    S.Saravanakumar