Skip to main content
Graduate II
September 28, 2025
Question

Nx_webserver example doesn't work on Nucleo-F429zi

  • September 28, 2025
  • 3 replies
  • 262 views

Resuming studies, regarding:

I'm resuming my STM32 studies, having not used them for a few months.

After this time, and updates to CubeID and CubeMX, I'm trying to get back to it using the Nx_webserver example. Although the code appears to be correct, it doesn't work; it doesn't even get a valid IP address in DHCP.

I've tried changing the MAC address, but even then, nothing in DHCP works.

Is there anything I should do to make it work?

I have the following console output:

 -------------------------------------------------------------------
 STM32CubeProgrammer v2.20.0 
 -------------------------------------------------------------------



Log output file: /tmp/STM32CubeProgrammer_q4oXBH.log
ST-LINK SN : 066EFF353445503043075718
ST-LINK FW : V2J46M31
Board : NUCLEO-F429ZI
Voltage : 3,23V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x419
Revision ID : Rev 5/B
Device name : STM32F42xxx/F43xxx
Flash size : 2 MBytes
Device type : MCU
Device CPU : Cortex-M4
BL Version : 0x91



Opening and parsing file: ST-LINK_GDB_server_HF7OuX.srec


Memory Programming ...
 File : ST-LINK_GDB_server_HF7OuX.srec
 Size : 18.19 KB 
 Address : 0x08000000


Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 1]
Download in Progress:


File download complete
Time elapsed during download operation: 00:00:00.719



Verifying...




Time elapsed during verifying operation: 00:00:00.130


Download verified successfully 


Shutting down...
Exit.
    This topic has been closed for replies.

    3 replies

    Graduate II
    September 28, 2025

    This error is happening when I load the project into CubeMX for the first time.carlosdelfino_0-1759097642723.png

     

    Technical Moderator
    October 2, 2025

    Hello @carlosdelfino,

     

    Did you install your F4 firmware in a location other than the default one? Have you tried removing both the project and the firmware, then reinstalling them in the default location?

    Regarding the DHCP issue, have you ensured that a DHCP server is running on your computer? If not, you should connect the board directly to the router so it can be assigned an IP address. Additionally, have you tried monitoring the network traffic using a tool like Wireshark? This can help determine if the DHCP sequence stops at a certain step or does not occur at all.

    Best regards,

    Graduate II
    October 3, 2025

    Hello, thank you for your attention.

    I've already tried removing and creating the project, but I always get this error. I'll try removing the firmware and reinstalling it. I'll also try removing everything and reinstalling everything. I use Linux and have never had similar problems. Strangely, the compilation works, but the code seems empty in terms of the example's purpose.

    I'll get back to you later today.