xcore / sc_ethernet

10/100 MII Ethernet MAC for XMOS microcontrollers
http://xcore.github.com/sc_ethernet/index.html
Other
37 stars 29 forks source link

Added wait for PHY ready before attempting to initialise #59

Open ed-xmos opened 9 years ago

ed-xmos commented 9 years ago

Stumbled upon this when I was playing with setting PHY mode to fixed 100M baseT on the mode pins, and was unable to set to autoneg in software.

As with so many things in life, found that PHY just wasn't ready to listen. A quick check on AVB-LC board shows about a millisecond of polling before power down bit is cleared and PHY is configured, so not a major delay.