prp_switch#
Overview#
The FreeRTOS PRP (Parallel Redundancy Protocol) project is a demonstration of implementing the IEC 62439-3 PRP protocol using FreeRTOS. This project provides a complete implementation of PRP functionality including frame forwarding, supervision, and node management.
PRP is a network redundancy protocol that provides seamless failover by sending duplicate frames over two independent networks (LAN A and LAN B). This implementation supports both DAN (Doubly Attached Node) and RedBox (Redundancy Box) modes.
Running the demo#
After the demo run on device, first link up all switch ports. Then connect swp0 and swp1 as PRP redundancy ports to PRP LAN A and LAN B, connect swp2 as redbox interlink port to SAN node. The SAN node device can communicate with PRP device in PRP network.
Example output: Run PRP stack!.
NETC PRP example
Buffer ring initialized with 32 buffers
Wait PHY link up, please link up all switch ports. Available buffers: 24 Hash table created successfully Hash table created successfully
Supported Boards#
MIMXRT1180-EVK
Hardware requirements
Mini/micro USB cable
MIMXRT1180-EVK board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.