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.

AM2634: AM2634 Ethernet Individual MAC mode

Part Number: AM2634

Tool/software:

we have a requirement to operate two ethernets ports provided in AM2634 independently (not in switch mode) i.e., the program should be capable of sending frames to a particular port which is necessary at that instant.

eg., take frame A this needs to be sent to port 0 at instant1 & take frame B this needs to be sent to port1 at instant2(But frame A should not be sent to port1 the same goes with frame B).

Can this be achieved using AM2634? If so, please provide resources that are helpful!

Regard,

Srinivas S.

  • Hi Srinivas,

    The PRU-ICSS core of the AM2634 is capable of doing this. You can enable port 1 on the PR0_PRU0 pins and port 2 on the PR0_PRU1 pins.

    Refer to table 7-26 in the AM2634 Technical Reference Manual for details on the pin assignments for the PRU pins. Ensure you are looking at the 2h - MII mode column.

    Regards,

    Brennan

  • hi Brennan,

    1.Can't my requirement be achieved using CPSW, I need to use ethernet in RMII mode. whereas the suggested solution by you is only possible with MII interface. If so, please provide resources that are helpful!

    2. I also have one more doubt regarding which revision of AM2634 supports this functionality required (independent MAC port control or 2h-MII mode). We are having revision D die (for your information).

    Regards,

    S Srinivas.

  • Srinivas,

    1. Please confirm - you want to use ETHERNET in RMII mode on two ports? NOT CPSW?

    Regards,

    Brennan

  • Srinivas, 
    It is possible to configure the CPSW in dual MAC mode, which would allow you to use both external ports as individual MAC ports instead of as a switch. Unfortunately we don't have any examples of dual MAC mode. In order to utilize it, you would configure both ports to be MAC only mode and assign them individual MAC addresses.

    Regards,

    Susan

  • Dear Brennan,

    Yes, We would like to use RMII mode for both ports, and need an independent control over transmission and reception, Our target application is implementing etherCAT master so we would like to reduce software over head of handling two ports that arises in switch mode.

  • Hi Susan,

    Actually Our application is EtherCAT master, so we would like an hardware level control over transmission and reception i.e., we should be able to transmit to particular port, we should be aware of from which port the frame is received. 

    Can we acheive the same using the method you have suggested? please confirm, also please provide any related documentation if possible.

    Regards,

    Srinivas S

  • Srinivas, 

    Are you planning on using AM2634 as the EtherCAT master? Or as a subdevice?

    Regards,

    Brennan

  • Hi Brennan,

    We are planning to use AM2634 as EtherCAT Main Device (Master). And for that, based on our design of EtherCAT master we would need control over transmission and tracability in reception with respect to Ethernet port. Please suggest us a solution in this regard.

    I just have one more doubt, according to my understanding, if we use CPSW the frame transmitted using CPDMA will be sent to both interfaces, and any frame received from two ports will be given to host port (but we don't know from which interface the frame has come). Please confirm this as well, and correct me if i am wrong.

    Please consider this as priority, we are actually in a hurry. Hoping for a quick and accurate reply

    Thanks & Regards,

    Srinivas

  • Hi Srinivas,

    Please see this E2E FAQ in regards to using AM2634 as an EtherCAT MainDevice. Note that TI does not offer an EtherCAT MainDevice solution out of the box. 

    There are several third parties that offer solutions. 

    https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1168494/faq-mcu-plus-sdk-am243x-ethercat-maindevice-with-ti-sitara-devices-am263px-am261x-am243x-am263x 

    Regards,

    Brennan

  • Dear Brennan,

    We have already implemented Ethercat Master stack in a controller with single ethernet interface, now we would like to implement full ethercat master functionality, hence we are going with AM2634, so there is no concern regarding the Master stack's availability.

    We need the info regarding the capabilities of CPSW and ICSS, their level of providing the control and traceability to the application to acheive optimal performance. so can you please provide clarification in this regard.

    1. Can we achieve hardware level control over transmission and reception(from which interface the frame arrives) using CPSW, from my understanding if we use CPSW the frame transmitted using CPDMA will be sent to both interfaces, and any frame received from two ports will be given to host port (but we don't know from which interface the frame has come). Please confirm this as well,and correct me if I am wrong.

    2. And can we use RMII interface for PRU-ICSS.

    And if possible can you loop this conversation to an EtherCAT expert if possible.

    Thanks & Regards,

    Srinivas

  • Srinivas,

    For (1), I am looping in our CPSW expert.

    2. And can we use RMII interface for PRU-ICSS.

    No, PRU-ICSS only supports MII Ethernet.

    Our EtherCAT expert is currently out of office, I am providing support until he returns next week. I appreciate your patience!

    Regards,

    Brennan

  • Thanks brennan, 

    Can I get the clarification regarding point 1. i.e., understanding about CPSW.

    Also please provide resources on dual MAC Mode if available. (AM263x MCU+ SDK: Enet CPSW Operation Modes Demo) other than this one.

    Regards,
    Srinivas

  • Apologies for the delay,

    In MAC only mode, the CPSW does not forward packets received. The packets are only sent to the host port. You can configure each MAC port (the external ports and not the host port) to have their own MAC addresses, which should help determine with port received what packet.
    The enet_lwip_cpsw example configures dual mac mode, you can test with that.

    Regards,

    Susan

  • Thanks for the clarification susan, can I get the clarification on transmission as well, i.e., if I fill a frame in CPDMA, then the frame will be transmitted to both ports right?

    Also as per your answer in previous thread, you are actually suggesting using mac filter based on the port, right? 

    such that the port is identified based on destination MAC. Correct me if I am wrong.

    Regards,

    Srinivas

  • Hi brennan and susan, 

    can you please respond to the previous thread

    Regards, 

    Srinivas

  • Thanks for the clarification susan, can I get the clarification on transmission as well, i.e., if I fill a frame in CPDMA, then the frame will be transmitted to both ports right?

    Also as per your answer in previous thread, you are actually suggesting using mac filter based on the port, right? 

    Hi TEMC,

    It is possible and it is configured through the portmask attribute of cpdma pkt descriptor.

    You can look at mcu_plus_sdk/source/networking/enet/core/examples/enet_layer2_multi_channel example which does the same.