Specifications

June 2011 Altera Corporation Using the NicheStack TCP/IP Stack - Nios II Edition Tutorial
1. Using the NicheStack TCP/IP Stack
This tutorial introduces you to the Nios
®
II Software Build Tools (SBT) for Eclipse™
using the MicroC/OS-II and NicheStack TCP/IP Stack development flow. It shows
you how to use the Nios II SBT for Eclipse to create a new Nios II project that
configures, builds, and runs a MicroC/OS-II and NicheStack TCP/IP Stack program
on an Altera
®
development board.
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 Altera 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.
1 The Nios II target system does not implement a full telnet server.
f 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 Developers
Handbook.
f 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.