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.