
4 DS-5 Quick Start Guide
www.arm.com/ds5 5
Access to the Target’s Linux File System
Eclipse C/C++ Perspective
Eclipse provides a powerful IDE (Integrated Development
Environment) with flexible window management and C/C++
source editing.
Window Management
Change the position of any view in Eclipse by left-clicking on its
tab and dragging it. The new location can be adjacent to existing
views or in a tabbed group.
You can detach (undock) the view or add it to the Fast View
bar by right-clicking on the view name.
All detached views can be dragged to a second monitor.
Source Code Editing
The Eclipse IDE includes several features that make it easier to
edit C/C++ code, including:
The ARM Assembler editor also provides syntax highlighting,
formatting of code, and auto-completion of labels in ARM and
Thumb assembly language files.
Analysis of Executable Files
Double-clicking on an executable or object file opens the ELF
Content Editor plug-in. Alternatively, right-click on the file and
select ? Other ? ELF Content Editor.
This plug-in enables the static analysis of built or imported
images before connecting a debugger to the actual target.
The ELF Content Editor includes several tabs with graphical
views for:
nSyntax highlighting.
nPop-ups with variable/function information and quick-jump to
declaration with F3.
nCode auto-completion.
nTemplates for source and header files and classes.
nSearch in project files.
nOverview pane with general information on the image (ELF
header) and details for each ELF section.
nSymbol browser with complete symbol list (variables,
functions, labels) and symbol properties (type, address).
nSyntax-coloured disassembly view enables you to examine
the code generated by the compiler.
Open With
Automatic display of function and variable information in the code view.
Source auto-completion. Start typing the name of a class, variable
or function and click Ctrl+Space.
The ELF Content Editor performs static analysis of object files.
Connecting to the Target
All you need to debug and analyze Linux applications on an
ARM processor-based target is a TCP/IP between the target and
the host computer.
DS-5 Debugger launches the gdbserver debug agent on the
target, connects to it, and uses it to control a running
application. DS-5 requires gdbserver v6.8 or later. The
installation includes v7.0.
In the case of Real-Time System Models, the debugger connects
to one of the UARTs in the SoC model.
Bare metal and kernal development requires a JTAG or Serial-
Wire Debug target connection. This is provided by the ARM
DSTREAM debug and trace unit.
Accessing the Target’s File System
DS-5 integrates a Remote System Explorer (RSE) to access
the Linux file system on hardware targets that support the
Secure Shell (SSH). The target must include a secure shell
daemon (sshd) and sftp-server.
RSE enables the following functionality:
nSFTP Files View: Access the target’s Linux file system using
an FTP connection. Navigate, copy, paste, drag and drop, and
edit files on the target.
nShell Processes View: Displays a list of current processes
running on the target.
nSSH Shell/Terminal View: Opens a shell or a terminal
window connected to the target in order to execute Linux
commands - for example to run an application.
nAutomated software download: DS-5 Debugger uses RSE
connections to automate the download of images to the
target, execute gdbserver, and connect to it.
Configure Remote System Explorer
Open RSE by selecting Window ? Show View ? Other...
? Remote Systems ? Remote Systems.
Click on the New Connection button . Select Linux and
click Next.
Fill the Host name box with the IP address of the target system,
or its network name if it is registered on a DNS server. Define a
name for the connection and click Next.
In the next configuration steps choose the Secure Shell
(ssh.files) option, then click Finish.
TM
Real-Time System Models
DS-5 includes Real-Time System Models (RTSMs) of
ARM processor-based SoCs.
An RTSM is a fast simulation model of a complete SoC
with a processor, system memory, and peripherals such as
keyboard, mouse, UARTs, Ethernet, and LCD.
RTSMs enable ARM Linux application development
without any hardware, and deliver simulation speeds of
over 250MHz on a typical desktop.
DS-5 includes an example ARM Linux distribution
ported to the Cortex-A8 RTSM. When launched, the
model automatically boots Linux and enters a state in
which you can load and debug your applications.
RTSMs are configured to mount a Virtual File System
(VFS). The processor running in simulation can access
files in the host computer’s file system as if they were part
of its ARM Linux file system.
Remote System Explorer SFTP and Terminal views.
Kommentare zu diesen Handbüchern