Using the NicheStack TCP/IP Stack - Nios II Edition Tutorial

ID 683574
Date 10/04/2021
Public
Document Table of Contents

1.1. Introduction

This tutorial familiarizes you with the NicheStack TCP/IP Stack – Nios II Edition (NicheStack TCP/IP Stack) software component. The tutorial covers the following topics:

  • Configuring and initializing the NicheStack TCP/IP Stack software component
  • Managing a TCP/IP connection with MicroC/OS-II real-time operating system (RTOS) tasks
  • Using the Nios II SBT for Eclipse to develop programs with the NicheStack TCP/IP Stack software component

The Nios II SBT for Eclipse offers software designers a rich development platform for Nios II applications. The Nios II SBT for Eclipse contains the MicroC/OS-II RTOS and the NicheStack TCP/IP Stack software component, providing designers with the ability to quickly build networked embedded systems applications for the Nios II processor. This tutorial provides step-by-step instructions for building a simple program based on the MicroC/OS-II RTOS and NicheStack TCP/IP Stack networking stack.

This tutorial describes C software files that demonstrate communication with a telnet client on a development host PC. The telnet client offers a convenient way of issuing commands over a TCP/IP socket to the Ethernet-connected NicheStack TCP/IP Stack running on the development board with a simple TCP/IP socket server example. The socket server example receives commands sent over a TCP/IP connection and turns LEDs on and off according to the commands. The example consists of a socket server task that listens for commands on a TCP/IP port and dispatches those commands to a set of LED management tasks.

Note: The Nios II target system does not implement a full telnet server.

For more information about MicroC/OS-II for the Nios II processor, refer to the MicroC/OS-II Real-Time Operating System chapter of the Nios II Software Developer’s Handbook.

For more information about NicheStack TCP/IP Stack initialization and configuration for the Nios II processor, refer to the Ethernet and the NicheStack TCP/IP Stack – Nios II Edition chapter of the Nios II Software Developer's Handbook.