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.

RTOS/TDA2PXEVM: Ethernet phy_address setting(DP83867)

Part Number: TDA2PXEVM

Tool/software: TI-RTOS

Hello.

We made custom board and use vision SDK(TI-RTOS)

we want to change ethernet phy address setting.

DP83867 can set PHY address.

EVB board is phy address is 2, 3. but our board of dp83867 phy address is 5.

Note that the EVB log contains the following logs, but the custom board does not.
[HOST  ]     23.279570 s:  NSP GMAC: PHY 2 Found on MAC Port 0
[HOST  ]     23.281919 s:  NSP GMAC: PHY 3 Found on MAC Port 1

Please, Let me kown How to change code?

Thanks.

  • Hi Kyungtae,

    To configure the correct phy addr you have to make some changes in the \vision_sdk\links_fw\src\rtos\utils_common\src\ndk\ndk_nsp_hooks.c file. Inside the function GMACSW_getConfig, you should find a line of code which says

    pGMACSWConfig->macInitCfg[i].phyMask = /*Some bit mask*/

    There might be several of these statements under different #if defs. Under the #if def which applies to you, change the bit mask value on the RHS of the statement to the one corresponding to your phy address, in this case, 5.

    Your bit mask will be (0x1 << 5).

    Please make these changes and try running again. Also, do you have just one PHY on the custom board?

    Regards,
    Anand
  • Hi Anand.

    Thank you for your reply.

    We were able to confirm that our board was operating normally.

    [HOST ] 17.196425 s: NSP GMAC: PHY 5 Found on MAC Port 0
    [HOST ] 17.198773 s: NSP GMAC: PHY 5 Found on MAC Port 1
    [HOST ] 20.896815 s: NDK: Link Status: 1000Mb/s Full Duplex on PHY 5
    [HOST ] 20.897364 s: NDK: Link Status: 1000Mb/s Full Duplex on PHY 5

    Thanks.

    Regards,
    kyungtae