Restarting Ethernet connection on LPC54016

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Restarting Ethernet connection on LPC54016

149 Views
darpan_chamberlain
Contributor I

Hi,

I am working on an LPC54016 and I need to turnoff the ethernet connection on low battery and I need to restart it when the power is restored. 

I have inherited the source code in my organisation and it seems to set up an ethernet connection on power on but if I used the same api's to turn it back on it does not work. I guess this is due to reinitialising the module over again. Could you help me with the process of reinitialising the ethernet connection?

We are using the LPC core libraries of the LPC54016 controller to control PHY chip. 

We use the netifapi_netif_add() function to initialise the ethernet which in turn call the ENET_Init() function. And in order to disable I use the ENET_Deinit() function to disable the clock when I need to turn it off. After doing this even if I call the same procedure or the ethernetif0_init() function it does not help.

Could you let me know how I can go about restarting the ethernet connection?

Thanks

-Darpan

 

 

Labels (1)
0 Kudos
2 Replies

80 Views
darpan_chamberlain
Contributor I

Hi @Alice_Yang ,

Thank you for your help. I am currently not working with this task as it is handled by someone else. 

Thank you again.

0 Kudos

105 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @darpan_chamberlain 

How about using  ENET_Init() to initialize again after restart?

 

BR

Alice

0 Kudos