Running a synthetic target application, Name, Description – Comtrol eCos User Manual

Page 753: Commandline arguments

Advertising
background image

Running a Synthetic Target Application

Name

Execution

— Arguments and configuration files

Description

The procedure for configuring and building eCos and an application for the synthetic target is the same as for any
other eCos target. Once an executable has been built it can be run like any Linux program, for example from a shell
prompt,

$ ecos_hello

<

options

>

or using gdb:

$ gdb --nw --quiet --args ecos_hello

<

options

>

(gdb) run

Starting program: ecos_hello

<

options

>

By default use of the I/O auxiliary is disabled. If its I/O facilities are required then the option

--io

must be used.

Note: In future the default behaviour may change, with the I/O auxiliary being started by default. The option

--nio

can be used to prevent the auxiliary from being run.

Command-line Arguments

The syntax for running a synthetic target application is:

$

<

ecos_app

>

[options] [-- [app_options]]

Command line options up to the

--

are passed on to the I/O auxiliary. Subsequent arguments are not passed on

to the auxiliary, and hence can be used by the eCos application itself. The full set of arguments can be accessed
through the variables

cyg_hal_sys_argc

and

cyg_hal_sys_argv

.

The following options are accepted as standard:

--io

This option causes the eCos application to spawn the I/O auxiliary during HAL initialization. Without this
option only limited I/O will be available.

--nio

This option prevents the eCos application from spawning the I/O auxiliary. In the current version of the
software this is the default.

649

Advertising