Skip to main content
Visitor II
October 18, 2024
Solved

STM32F429ZI fixed Ethernet with LWIP

  • October 18, 2024
  • 1 reply
  • 1218 views

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.
    Best answer by mƎALLEm

    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.

    1 reply

    mƎALLEmAnswer
    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.

    QuangIoTAuthor
    Visitor II
    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?

    Technical Moderator
    October 21, 2024

    Hello @QuangIoT ,

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

    Thank you.