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.

TMDS64EVM: How to change PHY ledMode

Part Number: TMDS64EVM
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hello TI support team.

I'm using the enet_lwip_cpsw_am64x-evm_r5fss0_0_freertos_ti-arm-clang sample project.
I'd like to change the ledMode for the Ethernet PHY for a custom board.
Specifically, I'd like to change the ledMode setting for gEnetCpbBoard_dp83867PhyCfg in ti_board_config.c
as follows:

---------
static const Dp83867_Cfg gEnetCpbBoard_dp83867PhyCfg =
{
/* The delay values are set based on trial and error and not tuned per port of the evm */
    .txClkShiftEn         = true,
    .rxClkShiftEn         = true,
    .txDelayInPs          = 250U,   /* 0.25 ns */
    .rxDelayInPs          = 2000U,  /* 2.00 ns */
    .txFifoDepth          = 4U,
    .impedanceInMilliOhms = 35000,  /* 35 ohms */
    .idleCntThresh        = 4U,     /* Improves short cable performance */
    .gpio0Mode            = DP83867_GPIO0_LED3,
    .gpio1Mode            = DP83867_GPIO1_COL, /* Unused */
    .ledMode              =
    {
#if 1 // after
        DP83867_LED_LINKED,
        DP83867_LED_RXTXACT,
        DP83867_LED_LINKED,
        DP83867_LED_LINKED_1000BT,
#else // default
        DP83867_LED_LINKED,         /* Unused */
        DP83867_LED_LINKED_100BTX,
        DP83867_LED_RXTXACT,
        DP83867_LED_LINKED_1000BT,
#endif
    },
};
---------

The SDK used is mcu_plus_sdk_am64x_08_06_00_45.

ti_board_config.c is automatically generated during build, so even if I modify the file, it will be overwritten.

How should I modify it?
I found the Dp83867_setLedMode function.
If I can modify it, will the PHY work correctly with this change?

Best regards,
Kiyomasa Imaizumi.

  • Hi,

    If you are using custom board, I would suggest enabling custom board option in the sysconfig GUI so that you would be able to create and maintain your own board configuration file. You can follow the documentation in the MCU PLUS SDK for further details. Custom Board Support

    If there are no other major changes, and you would like to modify only the PHY LED configuration, you can do that by referring to the following documentation for Custom Ethernet PHY Integration Guide and look for " PHY extendedCfg" and update the LED config.

    If you have further queries, please let us know.

    Thanks and regards,
    Teja.