This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I am trying to run the lwip examples, e.g., enet_lwip_cpsw, on the am243. I followed the setup in the docs and I set up a LAN for my host machine and the LP but the LP does not get an IP assigned from the dhcp server on the router.
here are the logs I get when running the enet_lwip_cpsw example:
==========================
ENET LWIP App
==========================
Enabling clocks!
Mdio_open:282
PHY 3 is alive
PHY 15 is alive
Starting lwIP, local interface IP is dhcp-enabled
Host MAC address: f4:84:4c:f9:98:ce
[LWIPIF_LWIP] Enet has been started successfully
[LWIPIF_LWIP] NETIF INIT SUCCESS
status_callback==UP, local interface IP is 0.0.0.0
UDP server listening on port 5001
Cpsw_handleExternalPhyLinkUp:1232
link_callback==UP
5. 40s : CPU load = 1.40 %
10. 40s : CPU load = 1.12 %
15. 40s : CPU load = 1.12 %
20. 40s : CPU load = 1.12 %
25. 40s : CPU load = 1.12 %
30. 40s : CPU load = 1.13 %
35. 40s : CPU load = 1.13 %
40. 40s : CPU load = 1.13 %
45. 40s : CPU load = 1.13 %
50. 40s : CPU load = 1.13 %
Cpsw_handleLinkDown:1392
link_callback==DOWN
55. 40s : CPU load = 1.15 %
60. 40s : CPU load = 1.13 %
65. 40s : CPU load = 1.13 %
70. 40s : CPU load = 1.14 %
75. 40s : CPU load = 1.14 %
Cpsw_handleExternalPhyLinkUp:1232
link_callback==UP
80. 40s : CPU load = 1.15 %
85. 40s : CPU load = 1.15 %
90. 40s : CPU load = 1.16 %
95. 40s : CPU load = 1.14 %
Cpsw_handleLinkDown:1392
link_callback==DOWN
100. 40s : CPU load = 1.16 %
Cpsw_handleExternalPhyLinkUp:1232
link_callback==UP
Cpsw_handleLinkDown:1392
link_callback==DOWN
Cpsw_handleExternalPhyLinkUp:1232
link_callback==UP
105. 40s : CPU load = 1.17 %
110. 40s : CPU load = 1.15 %
Cpsw_handleLinkDown:1392
link_callback==DOWN
115. 40s : CPU load = 1.16 %
Cpsw_handleExternalPhyLinkUp:1232
link_callback==UP
120. 40s : CPU load = 1.16 %
125. 40s : CPU load = 1.17 %
130. 40s : CPU load = 1.16 %
135. 40s : CPU load = 1.14 %
then it keeps logging the CPU load.
I hope you could help me further with the problem. Thank you.
Best
Belal
Hi Belal,
What is the version of LP board you are using? MCU SDK support only e3 version of it.
BR
Nilabh A.
Hi Niblah,
It is E2. Is this valid for all networking examples? I wanted to test some networking features of the am243, do I need to write my own drivers then?
I didn't find any information regarding LP board version support in the SDK docs, where do I find these?
Best
Belal
Hi Belal,
do I need to write my own drivers then
I would recommend getting an E3 version of evaluation board, rather than writing your driver.
Please find the link below for the announcement:(It is true for all releases 8.4 onwards)
Hi Niblah,
thanks for the quick response. What about the older SDK versions?
Best
Belal
Belal, I tried running the example on my end it is working fine. Which port are you connecting ethernet cable on?
Hi Nilabh,
that was a different issue with the router. It now already works with SDK V8.3.
Thanks for your help
Best
Belal