Loading...
 
Skip to main content

System Workbench for STM32


STM32CubeMX LWIP not working

Souleymane,

I confirmed all of the clocks are enabled and the GPIO pins are in Input mode. So ST32CubeMX generated that code properly.

If I modify the code to put in the MAC address that is used by the Hex code(that works) that I downloaded from the other website, Wireshark sees the board when it is started:
2 12.739183 0.0.0.0 255.255.255.255 DHCP 350 DHCP Discover - Transaction ID 0x5851f42d
3 12.740327 44:8a:5b:d3:4c:8b Broadcast ARP 60 Who has 172.16.1.109? Tell 172.16.1.1__

But the board doesn't respond when the DHCP server asks "who has 172.16.1.109". That is the IP address that the server assigns to the Hex file that does work. The DHCP entry is still in the lease table of the server, so the server knows that MAC address is supposed to be 172.16.1.109.

I'm sure the problem is related to me using the DP83848 instead of the LAN8742A PHY. But I don't know what to modify to correct the problem.

Ray