Restarting Ethernet connection on LPC54016

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Restarting Ethernet connection on LPC54016

167 次查看
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

 

 

标签 (1)
0 项奖励
2 回复数

98 次查看
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 项奖励

123 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @darpan_chamberlain 

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

 

BR

Alice

0 项奖励