MayaPosch / FreeRTOS_SCPI

SCPI server implementation for STM32 using FreeRTOS, CMSIS-RTOS and libscpi.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

STM32 HAL & FreeRTOS-based HTTP & SCPI server

Simple HTTP & SCPI server based around FreeRTOS and libscpi 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 (arm-none-eabi). Building the project has been tested with MSYS2 on Windows and under Ubuntu.

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

SCPI server implementation for STM32 using FreeRTOS, CMSIS-RTOS and libscpi.


Languages

Language:C 97.0%Language:Assembly 2.8%Language:C++ 0.1%Language:HTML 0.0%Language:Makefile 0.0%