2019-10-29 01:22 AM
Hello,
I have the Nucleo-H743zi board and I am trying to use lwip+rtos to create a socket client, but I can't get IP.
I added FreeRTOS, but there are no specifications on the parameters used in order to get IP address. I tried to use the parameters that I consider important to het IP, but I still can't. I use the default function, the MX_LWIP_init().
Also I couldn't find any examples that show how to get IP with Stm32cubeIDE. The examples, that I found don't have any specifications on the parameters by stm32cubeMX or have the ioc file. Do you know weather there are any other examples specified for stm32cubeIDE?
Thanks in advance,
Angelos
2019-10-29 01:46 AM
ST doesn't provide MAC addresses for the boards, you'd need to make unique ones up to get an IP address from a DHCP server, or code in a fixed IP address in a range supported by your network.
2019-10-29 01:49 AM
I used a fixed IP supported by my network and tried to use another mac address than the provided one, but still didn't get an IP address.
2019-10-29 09:38 PM
It's not clear what exactly do you mean by "get an IP address". Who/what should get what IP address doing what?
2019-10-30 12:12 PM
If your're sure that DHCP is disabled - then it looks like the ethernet cable is not connected.
The ethernet "task" senses this (look in the code).
Or, the controller or PHY do not work correctly which again results in the cable disconnected state,
-- pa