CycloneSTP
Spanning Tree Protocol Library (STP and RSTP)

CycloneSTP is an implementation of STP (Spanning Tree Protocol) and RSTP (Rapid Spanning Tree Protocol) algorithms suitable for resource-constrained microcontrollers. STP and RSTP are network protocols that can be implemented on Ethernet bridges to ensure loop-free LAN topologies. Spanning Tree Protocol allows a network design with multiple physical paths and backup links for redundancy purpose. If a link fails, STP or RSTP automatically reconfigures the network to establish a new loop-free tree topology.

CycloneSTP is available either as open source (GPLv2 license) or under a royalty-free commercial license (non-GPL license). We also propose an evaluation license (90-day license in source form) with technical support for an easier onboarding and effective evaluation of our software.

Spanning Tree Protocol (STP)

Main Features

  • STP (Spanning Tree Protocol) implementation
  • RSTP (Rapid Spanning Tree Protocol) implementation for faster convergence
  • Prevents creation of loops
  • Automatic reconfiguration of the tree in case of topology changes
  • RSTP is designated to be backward compatible with STP
  • Comprehensive user API to configure Spanning Tree Protocol parameters
  • Supports BRIDGE-MIB (RFC 4188) to remotely manage and monitor STP operation
  • Support RSTP-MIB (RFC 4318) to remotely manage RSTP-specific parameters
  • Flexible memory footprint. Built-time configuration to embed only the necessary features
  • Portable architecture (no processor dependencies)
  • The library is distributed as a full ANSI C and highly maintainable source code
Future Product: MSTP (Multiple Spanning Tree Protocol) implementation

Supported Ethernet Switches

CycloneSTP supports 100Base-TX and Gigabit Ethernet switches from IC+, Marvell and Microchip.

ManufacturerPart NumberP/NPortsSpeed
IC+
IP175C5100Base-TX
Marvell
88E60606100Base-TX
Microchip
KSZ84633100Base-TX
KSZ85633100Base-TX
KSZ85655100Base-TX
KSZ85677100Base-TX
KSZ88633100Base-TX
KSZ88644100Base-TX
KSZ88733100Base-TX
KSZ88955100Base-TX
KSZ947771000Base-T
KSZ956331000Base-T
KSZ989331000Base-T
KSZ989661000Base-T
KSZ989771000Base-T
LAN93533100Base-TX
LAN93543100Base-TX
LAN93553100Base-TX
LAN93033100Base-TX
  • ARM Cortex-M3
  • ARM Cortex-M4
  • ARM Cortex-M7
  • ARM Cortex-M33
  • ARM Cortex-M85
  • ARM Cortex-R4
  • ARM Cortex-A5
  • ARM Cortex-A7
  • ARM Cortex-A8
  • ARM Cortex-A9
  • Legacy ARM7TDMI / ARM926EJ-S
  • RISC-V
  • MIPS M4K
  • MIPS microAptiv / M-Class
  • Infineon TriCore AURIX
  • PowerPC e200
  • Coldfire V2
  • RX600
  • AVR32
  • Xtensa LX6
  • Amazon FreeRTOS
  • SafeRTOS
  • ChibiOS/RT
  • CMSIS-RTOS
  • CMSIS-RTOS2
  • CMX-RTX
  • Keil RTXv4 and RTXv5
  • Micrium µC/OS-II and µC/OS-III
  • Microsoft Azure RTOS (ThreadX)
  • PX5 RTOS
  • Segger embOS
  • TI-RTOS (SYS/BIOS)
  • Zephyr RTOS
  • Bare Metal programming (without RTOS)
Toolchain / IDECompiler
MakefileGCC
AC6 System Workbench for STM32 (SW4STM32)GCC
Atollic TrueSTUDIOGCC
Espressif ESP-IDFGCC
HighTec Toolset for TriCoreGCC
IAR Embedded WorkbenchEWARM, EWRX
Infineon DAVEGCC
Keil MDK-ARMARM Compiler v5, ARM Compiler v6 (CLANG)
Microchip Studio (Atmel Studio)GCC
Microchip MPLAB XGCC, XC32
Microsoft Visual StudioMSVC
NXP MCUXpressoGCC
NXP S32 Design Studio (S32DS)GCC
Renesas e2StudioGCC, CC-RX
Segger Embedded StudioGCC
ST STM32CubeIDEGCC
Tasking VX-ToolsetVX-Toolset for TriCore
TI Code Composer Studio (CSS)GCC, TI-CGT

IEEE

  • IEEE Std 802.1D-1998: IEEE Standard for Local Area Network MAC (Media Access Control) Bridges
  • IEEE Std 802.1D-2004: IEEE Standard for Local and metropolitan area networks: Media Access Control (MAC) Bridges

RFC

  • RFC 4188: Definitions of Managed Objects for Bridges
  • RFC 4318: Definitions of Managed Objects for Bridges with Rapid Spanning Tree Protocol