Skip to main content
LGuan.201
Visitor II
October 17, 2019
Question

STM32h747-DISCO Ethernet Init Failure

  • October 17, 2019
  • 0 replies
  • 391 views

Hi, all

I just got to learn to use stm32 and got a STM32h747-DISCO kit

There is no Examples of Lwip, so I build a project with cubeMX

And it run in infinite_loop in LAN8742_Init,

     /* Get the device address from special mode register */  

     for(addr = 0; addr <= LAN8742_MAX_DEV_ADDR; addr ++)

     {

       if(pObj->IO.ReadReg(addr, LAN8742_SMR, &regvalue) < 0)

       { 

         status = LAN8742_STATUS_READ_ERROR;

         /* Can't read from this device address 

            continue with next address */

         continue;

       }

     

       if((regvalue & LAN8742_SMR_PHY_ADDR) == addr)

       {

         pObj->DevAddr = addr;

         status = LAN8742_STATUS_OK;

         break;

       }

     }

   

I'm a student not familiar with Lwip or tcp/ip, and willing to learn them with the help of this kit by myself

Now I stuck in the board init and really don't know what to do

Please help me , THANKS

This topic has been closed for replies.