cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F429ZI fixed Ethernet with LWIP

QuangIoT
Associate II

I hope this email finds you well. I am currently working with the STM32 NUCLEO F429ZI and encountering challenges with Ethernet connectivity. Specifically, I am looking for example projects demonstrating how to connect STM32 to Ethernet, both using a fixed IP and DHCP.

1 ACCEPTED SOLUTION

Accepted Solutions
SofLit
ST Employee

Hello @QuangIoT ,

You can refer to this example on GitHub.

In lwipopts.h file, there is this definition:

 

/* ---------- DHCP options ---------- */
#define LWIP_DHCP               1

 

1: DHCP activated,

0: deactivated -> Static IP.

In main.c for static IP:

/*Static IP ADDRESS*/
#define IP_ADDR0   ((uint8_t)192U)
#define IP_ADDR1   ((uint8_t)168U)
#define IP_ADDR2   ((uint8_t)0U)
#define IP_ADDR3   ((uint8_t)10U)

Hope it does answer your question.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
SofLit
ST Employee

Hello @QuangIoT ,

You can refer to this example on GitHub.

In lwipopts.h file, there is this definition:

 

/* ---------- DHCP options ---------- */
#define LWIP_DHCP               1

 

1: DHCP activated,

0: deactivated -> Static IP.

In main.c for static IP:

/*Static IP ADDRESS*/
#define IP_ADDR0   ((uint8_t)192U)
#define IP_ADDR1   ((uint8_t)168U)
#define IP_ADDR2   ((uint8_t)0U)
#define IP_ADDR3   ((uint8_t)10U)

Hope it does answer your question.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

How to connect STM32F429ZI to MQTT HiveMQ? What is the connection principle, and what is the connection command? What are the steps to connect STM32F429ZI to HiveMQ?

Hello @QuangIoT ,

I invite you to open a new thread for this new question.

Thank you.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.