maiowith.blogg.se

Mongoose tutorial
Mongoose tutorial









mongoose tutorial

STM32CubeIDE is an IDE software provided by STMicroelectronics.

  • Start a terminal, navigate to the project folder, and from there run make buildĭone! Now the firmware is flashed and the board should signal its state via an LED indicator (green or red).
  • Follow the Build Tools tutorial to setup your development environment.
  • There are (at least) two options to build the example:
  • Open your web browser and navigate to the board IP address, you should see a.
  • Once the blue LED starts blinking - the web server is ready.
  • After initialization, the application starts Mongoose's event loop and blinks a.
  • If you see a red LED turned on, make sure that your Ethernet cable is properly connected.
  • mongoose tutorial

  • The firmware initializes the network, and turns on a green LED if the initialization was.
  • mongoose tutorial

    Build the example (see below) and run it on a development board.Set IP address, network mask and gateway in LWIP/lwip.c.Mongoose-related functions are located in Core/Src/main.c Also, we may find specific configuration options like the IP address in Inc/main.h, while newer auto-generated versions use specific directories for example the IP address is inside the MX_LWIP_Init() function, in file lwip.c, under the LWIP directory. Old versions used to have the Inc and Src directories right on the root of the project, while newer versions put those under a Core directory. Project structure will vary depending on the STM32CubeIDE version and how much of the project was generated using the STM32CubeMX tool. The source code for this tutorial is located atĪ big part of this example is a regular STM32CubeIDE project (a lot of generatedįiles, FreeRTOS and lwIP sources, etc.). On an STM32 Nucleo-F746Z development board with FreeRTOS and lwIP. This example shows how to build an HTTP server using Mongoose Library and run it











    Mongoose tutorial