Dear all I have build my own custome board using STM32F407IGT6 device and used ST802RT1A as the PHY, when I start debugging and I break at main,my PC recognize the Ethernet link, but when I start the code the link is gone actually when the Ethernet drive code gets to line 300
/* Use autonegotiation about the link speed. */ it will fail to auto negotiate and also when it reach the line 310 /* Check the link status. */
the line status also fails, so the board would not be detected by the PC,
I have used the same schematics form the keil MCBSTM32F400 board, except I have used a 4.99K resistor instead of 5.23K for IREF pin,
Do you have any idea what's going wrong?
Are you using MII or RMII mode? Can you connect at specific speed like 100BaseT or 10baseT?
I had a similar problem, I'm using an ARM9 processor. The eval board used a Davicom PHY and I'm using a Micrel PHY. The example project worked for the eval board but when I adapted it for my own custom board, it didn't work during auto-negotiation. My problem was that my registers weren't setup 100% correctly so the clock for the PHY wasn't configured right. Once the clock configuration was correct, everything worked as expected.
Lei