Skip to main content
Angelos1
Associate II
October 29, 2019
Question

How to get IP with Nucleo-H743ZI stm32CubeIDE, using lwip?

  • October 29, 2019
  • 2 replies
  • 2067 views

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 

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
October 29, 2019

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.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Angelos1
Angelos1Author
Associate II
October 29, 2019

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.

Pavel A.
Super User
October 30, 2019

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

Piranha
Principal III
October 30, 2019

It's not clear what exactly do you mean by "get an IP address". Who/what should get what IP address doing what?