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/TMS320F28379D: EtherCAT , SSI ,

Part Number: TMS320F28379D
Other Parts Discussed in Thread: TMDSECATCNCD379D, TLK110

Tool/software: Code Composer Studio

Hi , everyone.

1\ I want to design EtherCAT ET1100 circuit using 28379D, describe the detail as follows:   8bit async datawidth

   EM1CS  choose CS2 or cs3 or cs4;

  em1oe ->rd

  em1we->wr

  em1wait->busy   set em1wait to 0;

  GPIO84->ET_IRQ;

  GPIO87->EEPROM_LOAD;

  EM1BA0,EM1BA1;EM1A[13:0];

  ED[[7:0];

  GPIO88->SYNC0;    

 GPIO89->SYNC1;

 how to set EMxDQM pins?

And above pins is proper to set?

2\ how to use SSC 5.11 to generate slave stack code ?

There are five options to choose ti chip. AM335x may be fit for arm, it is not proper.

The other options are all about TMDSECATCNCD379D. 

So if I use my circuit design by myself ,how to choose and how to generate slave stack code?

3\ My circuit do not design C28X pin connect to EtherCAT RESET. Of course , EtherCAT RESET is connected to the C28x reset pin. Is it ok? 

  • <<ETG2200_V304_slave_Implementation_guide.pdf>>P29 describe that "The SSC is a free sample code from Beckhoff which provides an interface to the ESC. For hardware independent software development, the SSC runs on several evaluation kits and can be customized for implementation in accordance with the product specification".
    It means that I can choose the option about ti kit about Ethercat ,then generate the ssc code . I can modify the ssc code according to my hardware and function .My understanding is correct?
  • Hi Richie,

    I am answering your query specific to EMIF interface. For other queries, you have to wait sometime because engineer working on that is on vacation.

    how to set EMxDQM pins?

    Since you are using 8bit interface, you don't need to use these pins.

    Regards,

    Vivek Singh

  • Richie

    You should choose the TI option for ASYNC16. This is designed to use EMIF as PDI for C28x and ET1100. This is the only option that provides the stack with the necessary files to work on C28x.

    Best regards
    Chris
  • Chris,

    1、 I am confused about the code line 496 and 497 in ecatappl.c .

    line 496 :#ifdef SET_EEPROM_PTR
    line 497 SET_EEPROM_PTR
    line 498 :#endif

    what is the meanning of SET_EEPROM_PTR ? I totally don not understand.

    2、  28379D is The CPU is a 32-bit fixed-point processor. What are differences between 8bit and 16bit data memory of EMIF1? Assuming hardware is connected correct . 

    In the ethercat_slave_c28x_hal.c file ,there are codes. Supposing offset = 0x140

    uint16_t ESC_readWordNonISR(uint16_t offset)
    {
    uint16_t value;
    DINT;
    value = ((((volatile uint16_t *)pEsc)[((offset)>>1)]));
    EINT;
    return value;
    }

    In the 16bit mode ,the function means read content from the address 0x140 in lower byte and 0x141 in higher byte.

    In the 8bit mode, the function also means  read content from the address 0x140 in lower byte and 0x141 in higher byte.

    In my opinion,value = ((((volatile uint16_t *)pEsc)[((offset)])); is correct code expression. Because it can be accessed by 8bit data. 

    I do not find any differences between them.

    Maybe c28x is 16bit address processor. C28x only can be access by 16bit address .

    28379D can configurated into 8bit/16bit/32bit data mode , only to supply the requirement of external memory hardware .

    But actually software programming is also needed to handle data with 16bit access to address.

    My understanding is correct?

    Best Regards!

    Richie 

  • Richie

    1. For stack questions, please refer to ETG forum
    2. Yes, 28379D can only access 16bit addressing

    Best regards
    Chris
  • Chris,

    I have some problems about TLK110 as PHY and 379D as micro controller to develop EtherCAT.
    Because this is the first time I use PHY chip, so I do not know how to use it in my software project .
    TLK110 is from Ti, so I think Ti forum may be fit for answering this question.
    But if not suitable , I will ask help from ETG Forum.

    Best Regards.
    Richie

  • Richie

    If your question is specific to using the TLK110, then you should start thread here: e2e.ti.com/.../903

    Best regards
    Chris
  • Chris ,

    Thanks. Now I have post a new thread in the Ethernet Forum.
    But I want to keep this thread for a few days in case I will debug and encouter some problems about Ethercat and 379d which I can not sovle.

    Best Regards.
    Richie
  • Richie

    Alright, great! If you have another issue, please start a new post, that best helps us assist you.

    Best regards
    Chris
  • Chri ,

    I have solve almost problems about PHY and ET1100. Now PHY can be detected in the IPC of BECKHOFF, and ESI files can be writen into EEPROM .I think our hardware work well and design is ok.So I tell you this news and share happiness with you .
    Next step I will try to use slave hardware communicate with IPC and read memory , then maybe use COE application as our protocal. Thank you for your reply.

    Maybe I want to make sure . If I use 28379D emif1 to access the ET1100 through PDI 8 bit, it is very suitable and better the PDI 16bit .
    Because when I read and write into register , it can be  accessed 16bit interface.Actually it is connnected to 8 data lines and reduce 8 data line for PID16 bit. So my understanding is correct?

    Best Regards.
    Richie

  • Richie

    Your understanding sounds correct, though my expertise isn't EMIF. If you have any separate EMIF questions, please start a new post.

    Best regards
    Chris
  • Chris,
    Thank you for your reply. Get it.

    Best Regards.
    Richie