Skip to content

MayaPosch/FreeRTOS_HTTP_server

Repository files navigation

STM32 HAL & FreeRTOS-based HTTP webserver

Simple HTTP server based around FreeRTOS and the STM32 HAL libraries for Nucleo-F746ZG boards. Uses the LwIP Netconn API.

It contains two HTML pages:

  • The first page (home page) is static, it gives basic information about STM32F7 and LwIP stack.
  • The second page is dynamically refreshed (every 1 s), it shows the RTOS statistics in runtime.

If a DHCP server is available, a dynamic IP address can be allocated by enabling the DHCP process (#define USE_DHCP in main.h). By default DHCP is used.

Ethernet cable status is ensured by LEDs:

  • LED1: ethernet cable is connected.
  • LED3: ethernet cable is not connected.

Note

This example code was adapted from the 'LwIP HTTP Server Netconn RTOS' example provided with ST Microelectronics' STM32F7 CMSIS package.

Building

This example requires Make and the Arm GCC-based toolchain. Building the project has been successfully tested with MSYS2 on Windows.

With the dependencies installed, execute make to build the project.

Flashing

To flash the project to the Nucleo board after building, OpenOCD has to be installed. After that executing make flash suffices to flash the binary firmware image.

About

STM32-based FreeRTOS HTTP webserver example.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages