xEMAC Init (SAM7X, IAR, uIP)

nobody wrote on Tuesday, December 19, 2006:


a glance over the source code for PHY and EMAC initialisation revealed a strange wait
sequence for PHY auto init. The PHY layer on my board is DAVICOM DM9161A. In xEMACInit, before auto negotiation and rest of init work, at the bare beginning there is sequence:

    /* Wait for PHY auto init end (rather crude delay!). */
    vTaskDelay( emacPHY_INIT_DELAY );

This delay is 5s, and it is not connected to integrated SAM7X MAC layer. I wrote to DAVICOM but  ( after rading their documentation ) but they did not answer.

This delay is, as quoted rather crude for my app, so i need to figure out the minimal Ethernet rise time (ready for use, and possibly without uIP).

This part of code is taged as ‘supplied by Atmel (and reformated)’. On their web site i did not found examples for SAM7X, so if anybody have the original EMAC init code i would be thankfull, for sendig it.

If there is anybody familiar with this issue, thanks in advance for any help or advice.

nobody wrote on Tuesday, December 19, 2006:

I don’t think they supply the original code anymore, having updated it from the FreeRTOS code :wink:

nobody wrote on Tuesday, December 19, 2006:

Maybe this helps

nobody wrote on Tuesday, December 19, 2006:

Thanks, it helps much!

And Atmel Tech support sended me today this link: