Specifications

Chapter 1: Using the NicheStack TCP/IP Stack 1–3
Software Development Flow
June 2011 Altera Corporation Using the NicheStack TCP/IP Stack - Nios II Edition Tutorial
You can locate the following software files in the <tutorial_files>\nichestack_tutorial
directory. These software files constitute the Nios II Simple Socket Server application
for this tutorial:
alt_2_wire.c—Contains utilities that provide a low-level interface to the EEPROM
devices.
alt_2_wire.h—Defines utilities that provide a low-level interface to the EEPROM
devices.
alt_eeprom.c—Contains utilities that read, write, dump, and fill the contents of the
EEPROM devices.
alt_eeprom.h—Defines utilities that read, write, dump, and fill the contents of the
EEPROM devices.
alt_error_handler.c—Contains three error handlers, one each for the Nios II
Simple Socket Server, NicheStack TCP/IP Stack, and MicroC/OS-II.
alt_error_handler.h—Contains definitions and function prototypes for the three
software component-specific error handlers.
iniche_init.c—Defines
main()
, which initializes MicroC/OS-II and NicheStack
TCP/IP Stack, processes the MAC and IP addresses, contains the PHY
management tasks, and defines function prototypes.
led.c—Contains the LED management tasks.
niosII_simple_socket_server.c—Defines the tasks and functions that use the
NicheStack TCP/IP Stack sockets interface, and creates all the MicroC/OS-II
resources.
niosII_simple_socket_server.h—Defines the task prototypes, task priorities, and
other MicroC/OS-II resources used in this tutorial.
tse_my_system.c—Defines the global structure of type "alt_tse_system_info",
named "tse_mac_device" which describes the TSE configuration.
Software Development Flow
The process for creating a NicheStack TCP/IP Stack and MicroC-OS/II software
image for the Nios II processor consists of the following general steps:
1. Creating a new Nios II SBT for Eclipse C/C++ application project with the simple
socket server project template
2. Configuring a board support package (BSP) project, including MicroC/OS-II and
the NicheStack TCP/IP Stack software component
3. Building the application project
4. Running and debugging the application project