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.

DP83TC812S-Q1: Question about Register Access Using a PSDK Function

Part Number: DP83TC812S-Q1
Other Parts Discussed in Thread: MSP-EXP430F5529LP, USB-2-MDIO

Hello,

I am attempting to read the PHY_BMSR (0x01h) register via MDIO using the PSDK function EnetPhyMdioDflt_readC22() which internally gets to CSL_MDIO_phyRegRead2().

CSL_MDIO_phyRegRead2() appears to be hanging in my case. Does this indicate that I am unable to communicate with the PHY chip via MDIO? Could this mean that the PHY chip is powered down?

Thanks,

Akshay

  • Hi Akshay,

    I am not familiar with PSDK or the functions you mentioned, lets try to check if the PHY is live or powered down by probing pin 16 which should be CLK_OUT, if we see the clock there, the PHY should be alive and well. 

    Then we can try to register read. 

    Best, 

    Alon

  • Hey Alon,

    Thanks for replying. I tried probing pin 16 and see no output there. What does this mean?

    Thanks,

    Akshay

  • Hi Akshay,

    If you are not reading the clk_out signal at pin 16, that means that the PHY is not alive. 

    You need to figure out why the PHY has not turned on, have you followed correct start up conditions? Do you have power?

    Best,

    Alon

  • Hey Alon,

    Quick correction. There is a CLKOUT and I'm seeing a 25Mhz clock output.

    Are you familiar with the TI k3conf utility? Anything specific we can probe there to verify things further?

    # k3conf_g dump device | grep CPSW                                                                                                                                                            
    |    28     | J721S2_DEV_CPSW1                                    | DEVICE_STATE_ON  |                                                                                                        
    |    29     | J721S2_DEV_MCU_CPSW0                                | DEVICE_STATE_ON  |                                                                                                        
    |   145     | J721S2_DEV_J7AM_SA2_CPSW_PSILSS0                    | DEVICE_STATE_ON  |                                                                                                        

    Thanks,

    Akshay

  • Hi Akshay,

    I am not familiar with TI k3conf utility, I am not sure what further you can probe. 

    In house, we use a MSP-EXP430F5529LP board to connect to MDC/MDIO, and then we use our proprietary program which you can download at https://www.ti.com/tool/ETHERNET-SW called USB-2-MDIO, using the program and physically connecting the board, we are able tor read/write from our PC's with relative ease. 

    Looking at the k3conf_g dump above, it seems it able to detect device is on. Can you verify if you see link-up? Have you tried connecting to a partner?

    Best,

    Alon