This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Driver for PHY LAN8740A?

Is there a driver for LAN8740A Ethernet PHY?
If not, is there any How-to for creating new driver for Network Component Ethernet PHY?
I would like to use this driver with STM32F207

Parents Reply Children
  • Try to change code for 100M register setting in following way:

    /* Check the link status. */
        for (tout = 0; tout < 0x10000; tout++) {
          regv = read_PHY (PHY_REG_BSR);
          if (regv & 0x0004) {
            /* Link is on, get connection info */
            regv = read_PHY (PHY_REG_PSCSR);
            if (regv & 0x0010) {
              /* Full-duplex connection */
              conn |= PHY_CON_SET_FULLD;
            }
            if ((regv & 0x0004) == 0) {
              /* 100Mb/s mode */
              conn |= PHY_CON_SET_100M;
            }
            break;
          }
        }
    

    Georg

  • Hi Georg,
    Could you send me the drive, please. Would safe some time.
    Much appreciated.
    saxt at iafrica dot com
    Stefan