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.

How to change TMS320DM642 MAC address ?

Hi!

      I build a  web server on TSM320DM642 system ,and  I use TI's example demon .

       Now,I can run the project successfully, I can open the webpage of DM642 on my PC explore, and also I can change the IP address of DM642,but I can't change the MAC

     address of DM642. 

     TI's example demon gives  dm642  a  MAC address of  'D':'4':'A':'1':'Z':'1',  and can I change the MAC address? If can , how to chage ?

   thanks very much !!!

                                                                                                        

  • Stephenier

    Is this a DM642 EVM you are using? If yes, then I believe the MAC address is stored in an external EEPROM, so you could use the BSL's EVMDM642_EEPROM_read() function to access the MAC address.

    Thanks

    David

  • David:

             I don't use  EVM,and  I  build  the web server  refering  on TI's  demo  .

             TI's demo gives an example of dm642_init,  and  every time start the system, the code run.

    void dm642_init()
    {

        // Init cache mode manually
        CSL_init(); 
        CACHE_clean(CACHE_L2ALL, 0, 0);
        CACHE_setL2Mode(CACHE_128KCACHE);
        CACHE_enableCaching(CACHE_EMIFA_CE00);
        CACHE_enableCaching(CACHE_EMIFA_CE01);

     
     bMacAddr[0]='D'; bMacAddr[1]=4;
     bMacAddr[2]='A'; bMacAddr[3]=1;
     bMacAddr[4]='Z'; bMacAddr[5]=1;

    }

    TI gives DM642 a MAC adress of "D:4:A:1:Z:1",I tried to change the last  one bMacAddr[5]  from '1' to '2',and  it is OK.

    if  I  change  other bMacAddr member,  the  system can not  run  successfully , it cannot  connect  to  PC  client.

     I  don't know why.

    whether  I  can change other  member of bMacAddr  of  MAC address?

  • Stephenier

    Have you had a chance to take a look at this doc: http://www.ti.com/lit/ug/spru628a/spru628a.pdf?

    Set up the local Ethernet MAC address by programming the MACADDRLn, MACADDRM, and MACADDRH registers. Be sure to program all eight MAC addresses ñ whether the receive channel is to be enabled or not. Duplicate the same MAC address across all unused channels. When using more than one receive channel, start with channel 0 and progress upwards. Write all MACADDRLn values first, then MACADDRM and MACADDRH.

    Thanks

    David