Skip to content

mongoose-examples/stm32n657-application-netxduo-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STM32N657 with NetXDuo and Mongoose

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.

Mongoose Wizard Project

This project is generated by Mongoose Wizard, https://mongoose.ws/wizard/ Mongoose Wizard is a visual Web dashboard builder for embedded devices.

Build and flash

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:
    1. Choose File / Import
    2. Choose "Existing Projects into Workspace", click Next,
    3. Click on "Directory", choose dir with generated files, click Finish

Flashing and running

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:

✅ Normal (signed) boot mode

  1. Sign both binaries (FSBL and application) using the STM32 Signing Tool.
    • FSBL target offset: 0x70000000
    • Application target offset: 0x70100000
  2. Program both images with STM32 CubeProgrammer in the External flash.
  3. 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.

⚙️ Development (debug) boot mode

If you only want to debug the application without the signed chain:

  1. Move BOOT1 jumper to position 2-3 (Dev Boot mode).
  2. 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.
  3. 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

Documentation and Tutorials

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages