A number of options exist for debugging eCos programs running inside the PXS:
You can output debugging information to the external serial port using
eprintf()
, eputs()
, ehex()
and
eprintv()
. These functions are prototyped in
ecosio.h. The output of the external serial port
is controlled by the async configuration parameter.
An internal debug port is also available to be used in the way stderr
is
used in a hosted implementation. (A special 4-pin-to-9-pin adapter is required
to use the internal debug port, and the case of the PXS must be opened to attach the
adapter.) The output of the internal debug port
is controlled by the debug configuration parameter.
The PXS supports source level debugging using GDB over the internal debug port by enabling the gdb RedBoot configuration parameter and disabling the debug configuration parameter.
The PXS supports source level debugging using a JTAG interface. This requires a special version of the PXS and a special JTAG adapter such as the JEENI Intelligent Debug Probe. (The case of the PXS must be opened to attach the JTAG adapter and to jumper the board for JTAG.) Contact technical support is you need to use the JTAG interface for debugging.