1.4. RealView Development Suite examples

The code for many of the examples in the RVDS documentation is located in the main examples directory (see RVDS installation, examples, and documentation directories).

In addition, the directory contains example code that is not described in the documentation. Read the readme.txt in each example directory for more information. The examples are installed in the following subdirectories:

asm

Some examples of ARM assembly language programming. The examples are used in the RealView Compilation Tools Assembler Guide.

cached_dhry

Examples of routines to initialize cache and TCMs on various ARM processors, built around the Dhrystone example. The supported processors include:

  • ARM9xx processors

  • ARM11xx processors

  • Cortex™-A8

  • Cortex-R4.

Cortex-M1

Examples for the ARM Cortex-M1 processor, that include example scatter files and build scripts.

Cortex-M3

Examples for the ARM Cortex-M3 processor, that include example scatter files and build scripts.

cpp

Some basic C++ examples.

databort

Design documentation and example code for a standard Data Abort handler.

dcc

Example code that demonstrates how to use the Debug Communications Channel. The example is described in the RealView Compilation Tools Developer Guide.

dhrystone

The Dhrystone Benchmark. The example is used in the RealView Debugger documentation.

dsp

This example demonstrates the use of the ETSI basic operations provided in dspfns.h.

emb_sw_dev

The example projects referenced in the chapter that describes embedded software development in the RealView Compilation Tools Developer Guide. The following subdirectories are included:

buildn

Batch and make files to build the example projects. See the related readme.txt file for a description of each project.

dhry

Source files for the Dhrystone benchmarking program. This program provides the code base for the example projects in the individual buildn directories.

include

User defined header files.

scatter

Scatter files used to build the example projects.

source

All other source files required to build the example projects.

fft_v5te

Fast Fourier Transform code optimized for ARM architecture v5TE (ARMv5TE).

interwork

Examples that show how to interwork between ARM code and Thumb code. See the chapter that describes interworking ARM and Thumb in the RealView Compilation Tools Developer Guide for details.

mmugen

The source and documentation for the MMUgen utility. This utility can generate MMU pagetable data from a rules file that describes the virtual to physical address translation required.

picpid

An example of how to write position-independent code.

sorts

Example code that compares an insertion sort, shell sort, and the quick sort used in the ARM C libraries.

svc

An example Supervisor Call (SVC) handler.

trace

An example application trace.c that is used in the tracing tutorial described in the RealView Debugger Trace User Guide. The application:

  • simulates a small system that reads a set of input data samples and computes the sample average

  • provides a framework for common instruction and data trace scenarios.

The image is scatterloaded as defined in the trace.scat file.

unicode

Example code that enables you to evaluate multibyte character support.

vfpsupport

Example code for enabling and carrying out VFP operations. Also included are various utility files for configuring the debug system when using VFP, and a PDF of Application Note 133 Using VFP in RVDS.

Copyright © 2003-2008 ARM Limited. All rights reserved.ARM DUI 0255G
Non-Confidential