Overview, Application framework, Interrupt functions from the ftxl hal – Echelon FTXL Hardware User Manual

Page 72

Advertising
background image

64

Using the Bring-Up Application to Verify FTXL Hardware Design

Overview

This appendix describes the Bring-Up application that is included with the FTXL

Developer’s Kit. This application implements a series of tests that exercise the
hardware interface between the Nios II processor, the FTXL 3190 Free Topology

Smart Transceiver, the FTXL service pin, and the FTXL service LED. You

should run these tests to verify a new or modified FTXL device’s hardware
design.
The Bring-Up application requires a Nios II hardware design that contains the

FTXL components and a STDOUT display device. In addition, the device must
have a JTAG or similar interface between the device and the PC that will run the

Nios IDE. The Bring-Up application can run with or without the Micrium
μC/OS-II operating system.
Because the Bring-Up application is based on the FPGA hardware reference

design used by the example applications that are included with the FTXL
Developer’s Kit, you might have to modify the FtxlHal.c file if your hardware

design differs from the reference design (for example, if your hardware design

uses different signal names or different logic).

Recommendation: While running the tests, connect a digital analyzer to the

FTXL Transceiver communications pins, the service LED pin, and the service pin

so that you can externally verify the signals on the pins. The test descriptions in

Running the Tests

on page 70 include logic analyzer traces that were generated

using the TechTools DigiView™ Logic Analyzer.

Application Framework

The Bring-Up application consists of one C source file (FtxlBringupApp.c) that
includes the series of tests. This file, in turn, includes the FtxlHal.h file and uses

functions from the FtxlHal.c file. All of these files are included in the Bring-Up
application project folder.

Interrupt Functions from the FTXL HAL

The FTXL interface defines interrupts from two sources: the FTXL Transceiver

and the service pin.

The FtxlBringupApp.c file defines the following callback handler functions to

process interrupts:

• LonDriverTransceiverIrq()

Called to process an interrupt from the FTXL Transceiver.

• LonIsrServicePin()

Called to process an interrupt from the service pin.

Advertising