Adding the spy command to an RTEMS/EPICS application
Several files need minor modifications to add the spy command to an
application.
- Add the full path to the RTEMS utilities support directory to the
application configure/RELEASE file:
RTEMS_UTILS=xxxx/modules/soft/rtemsutils-<release>
Where <release> is the release number of of the RTEMS
utility support.
- Add spy support to application database definition file
The application database definition file must include the database
definition files for the spy support. There are two ways that this can be
done:
- If you are building your application database definition file from
an xxxInclude.dbd file you include the additional
database definition file in that file:
include "base.dbd"
include "spy.dbd"
- If you are building your application database definition file from
the application Makefile you specify the aditional database
definition file there:
xxx_DBD += base.dbd
xxx_DBD += spy.dbd
- Add the RTEMS utility support libraries to the application
You must link the RTEMS utility support library with the application. Add
the following line:
xxx_LIBS += rtemsutils
before the
xxx_LIBS += $(EPICS_BASE_IOC_LIBS)
in the application Makefile.
Note that the task priority column is the RTEMS priority, not the EPICS
priority, of the task.
Installation and Building
After obtaining a copy of the distribution, it must be installed and built
for use at your site.
- Place the distribution file into the modules/soft directory.
- Execute the following commands:
cd modules/soft
gunzip rtemsutils-<release>.tar.gz
tar xf rtemsutils-<release>.tar
cd rtemsutils-<release>
Where <release> is the release number of of the RTEMS
utility support.
- Edit the configure/RELEASE file and set the path to your
installation of EPICS base.
- Execute make in the top level directory.