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.

What is the different between MACID and MAC1_SA/MAC2_SA ?

I want to set the MAC address ,but  What is the different between MACID and MAC1_SA / MAC2_SA ?

  • Hi Xi Su,

     

    The MAC1_SA and MAC2_Sa are found in the Gigabit ethernet switch subsystem, one set (MAC1_SA_HI & MAC1_SA_LO) for each EMAC port. For each device there is a unique MAC address, shown in the MAC ID reigster (with more information in the SPRS691C user guide) . The device will write to the MAC1/2_SA_HI and MAC1/2_SA_LO registers as the high and low section of the address. You can find out more about these registers in the gigabit ethernet user guide.

    Regards,

    Kat Kelsch

  • Thank you very much!

    But some one tell me that every port has its own Mac address ,  but  now it seems as every port has the same Mac address and IP address?

  • Hi Xi,

     

      You're right in that the device has it's own mac address and IP address corresponding to it. There is no MAC address for the host port (since it doesn't talk to the network/outside world) . The other ports do have the same address, but you can over write them if you wish, however they switch between them in order to choose who gets the information to send out or receive.

     

    I suggest looking over this e2e forum that is a couple of months old. I think it might answer some more of your questions that pop up, and you can see how this other customer went through the same process as you.

     

    http://e2e.ti.com/support/dsp/sitara_arm174_microprocessors/f/791/p/203416/722788.aspx#722788

    I hope this helps!

     

    Kat Kelsch

  • Though Port1/2 has its own MAC Address ,  when dsp send UDP to PC ,   UDP will  arrived Port1 or  Port 2 ,and  Port1/2  will  forward it to PC , so I need not care the MAC Address of Port1/2  , is it right ?

  • Hi Xi,

    You're correct int hat you don't need to care about the port1/2 MAC address. You can just say to send it to the port and it will forward it to the proper IP. So, if your packet is encrypted (and your device has an Security Accelerator) the port will determine it needs to go to the SA in order to decrypt and send it to it's desired destintation, and etc. You don't need to tell the port to forward it, it will do it on it's own.

    I suggest looking over some of the user guide sections on packet structure and descriptors. This will help you a lot on understanding. I suggest the gigabit ethernet subsystem section on the basic Ethernet Switch architecture (Section 2.3 on the user guide that you can find here : http://www.ti.com/general/docs/lit/getliterature.tsp?literatureNumber=sprugv9b&fileType=pdf).

    If you also have some extra time, try downloading one of the basic examples into CCS. Then step into the code and watch how the example sets up the system with the Ethernet switch.

     

    Regards,

    Kat Kelsch

  • Thank you sincerely !