Skip to main content
Associate III
October 18, 2024
Solved

STM32F429ZI fixed Ethernet with LWIP

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.

This topic has been closed for replies.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
October 18, 2024

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 "Best answer" on the reply which solved your issue or answered your question.

3 replies

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
October 18, 2024

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 "Best answer" on the reply which solved your issue or answered your question.
QuangIoTAuthor
Associate III
October 19, 2024

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?

mƎALLEm
ST Technical Moderator
October 21, 2024

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 "Best answer" on the reply which solved your issue or answered your question.