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.

evm6474+NDK+MDIO

Hi

Currently iam using the EVM6474 for our devolpment purposes. I tried to run the "Hello World" from the NDK folder in First processor. It is running suceesfully. But if i try same thing in another processor, iam getting message "NO PHY ATTACHED". In the first processor the MCL/MDIO connected to the switch, but in second processor it is pulled high. Is this reason? Is it possible to run NDK from second processor? If means,kindly explain me how

 

Thanks and Regards

Vijayabharathi C

 

  • Hi,

     

    DSP2 has no MDIO connection to the switch so it will not get configured, that was the issue.
    So you need DSP1 to configure the switch and remove the switch config from the NDK running on DSP2.

    In File "ethdriver.c" you need to tweak the function _HwPktPoll as follows (for DSP2):

    void _HwPktPoll( PDINFO *pi, uint fTimerTick )
    {
        /*Only Master Core polls for the Link*/
        if(coreNum == MASTER_CORE)
        {
            uint mdioStatus,phy,linkStatus;

            (void)pi;

            //if( fTimerTick && hMDIO )
            if( fTimerTick)
            {
                llEnter();
                Disable_DSP_Interrupts();

                        /* Now that we have a link, send any queued packets */
                        while( !pi->TxFree )
                            HwPktTxNext( pi );               

                Enable_DSP_Interrupts();
                llExit();
            }
        }/* MASTER_CORE*/

    }

    I hope this helps ...

     

    Kind regards,

    one and zero