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.

TDA4VM: PSDK7.01

Part Number: TDA4VM

Hi all,

We now want to connect two TDA4VM board using vehicle Ethernet cable. it is stated that TDA4VM is in slave mode by default. We are sure that it works properly, but now we want to change it to master mode so that two TDA4VM board can communicate with each other using Ethernet one in master and the other in slave mode. 

We try some methods to make TDA4 in master mode, but don't make it.

We hope ti can give us some advice about where in the code we can change the TDA4 board in master mode.

Thanks 

  • Hi,

    I am assuming that this is your custom board

    1. Can you provide details on which PHY you are using ?

    2. Which SDK version you are using ?

    3. Are you consulting the TRM for this information ?

    Regards

    Vineet

  • Hi Vineet,

    Thanks for your reply,

    At present, we can configure PHY to master and slave modes by modifying the PHY control register
    After setting vehicle Ethernet adapter to master and slave respectively, configuring PHY to slave and master working modes; both cases can be linked up and pinged to the PC successfully.


    However, after the two tda4 boards are directly connected through the vehicle Ethernet cable and configured in slave and master modes respectively, the printing status is linkup but ping failed . In addition, when we print out the receiving and sending data of the MAC port and do not Ping another tda4 board, we can also see that there is data sent from the MAC port and the package frame from the opposite end can be received from the slave.

    and for the questions you have proposed;

    1. Can you provide details on which PHY you are using ?

    -- we apply below macport and change some pinmux configurations to make it work

        {
            .portNum    = ENET_MAC_PORT_3, /* RGMII */
            .vlanCfg = { .portPri = 0U, .portCfi = 0U, .portVID = 0U }
        },
        {
            .portNum    = ENET_MAC_PORT_4, /* RGMII */
            .vlanCfg = { .portPri = 0U, .portCfi = 0U, .portVID = 0U }
        },
        {
            .portNum    = ENET_MAC_PORT_6, /* RGMII */
            .vlanCfg = { .portPri = 0U, .portCfi = 0U, .portVID = 0U }
        },

    2. Which SDK version you are using ?

    --it is PSDK 701

    3. Are you consulting the TRM for this information ?

    yes, and they provided some helpful infomations as below:

    >Whether the current case can be considered that PHY has successfully worked in master and slave modes.
    ----If it has been linked up, it should work normally. In addition, after switching master / slave, you need to do soft reset.
    > Whether PHY needs other configuration to realize the direct connection of two tda4 boards through vehicle Ethernet network cable.
    ----There should be no need for other configurations. Theoretically, it should be no different from connecting Ethernet adapter

    Thanks