This project demonstrates an Ethernet-connected STM32N657 running a NetX Duo TCP/IP stack integrated with the Mongoose embedded web server.
It brings up the STM32N6 Ethernet interface under ThreadX/NetX Duo, obtains an IP address via DHCP, and launches a Mongoose HTTP/REST server so the board can serve a web dashboard or API over the network.
This project is generated by Mongoose Wizard, https://mongoose.ws/wizard/ Mongoose Wizard is a visual Web dashboard builder for embedded devices.
Step 1. Download generated project to your workstation
Click on the "Generate" button to download the project to your workstation
Step 2. Build the project
- Start Cube IDE (use Cube 1.16.0 or later), then:
- Choose File / Import
- Choose "Existing Projects into Workspace", click Next,
- Click on "Directory", choose dir with generated files, click Finish
The STM32N6 uses a secure boot chain with a First-Stage Boot Loader (FSBL) and an application firmware.
You can run this demo in two ways:
- Sign both binaries (FSBL and application) using the STM32 Signing Tool.
- FSBL target offset: 0x70000000
- Application target offset: 0x70100000
- Program both images with STM32 CubeProgrammer in the External flash.
- Select Normal Boot mode on the board.
On reset, the FSBL authenticates the application and chain-loads it; the application then brings up Ethernet, gets a DHCP address, and starts Mongoose.
If you only want to debug the application without the signed chain:
- Move BOOT1 jumper to position 2-3 (Dev Boot mode).
- In CubeIDE, right click the application project, navigate "Properties" -> "C/C++ Build" -> "Settings" -> "MCU/MPU GCC linker" -> "General" and switch the linker script to STM32N657X0HXQ_LRUN.ld in the upper right corner. Rebuild the application.
- Press Debug — the IDE will load the app directly into RAM and start it without FSBL.
For detailed instructions on selecting the boot mode, programming and signing the firmwares, refer to ST’s guide:
How to create an STM32N6 FSBL, load and run