cancel
Showing results for 
Search instead for 
Did you mean: 

STM32h747-DISCO Ethernet Init Failure

LGuan.201
Associate

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

0 REPLIES 0