This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Challenge with getting AT91SAM7S256 (Olimex P256) board to use serial ports
- From: John Dallaway <john at dallaway dot org dot uk>
- To: "Jesper K. Pedersen" <linux at famped dot dk>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Sun, 27 Nov 2011 14:49:09 +0000
- Subject: [ECOS] Re: Challenge with getting AT91SAM7S256 (Olimex P256) board to use serial ports
- References: <20111127142736.3fb4f5d6@io.solnet>
Hi Jesper
Jesper K. Pedersen wrote:
> My challenge is that when I try to use the serial port example I get no
> output (neither from the diag port or the serial ports).
>
> Diagnostic test indicate that the cyg_io_lookup exit with error code 1
> (EPERM)
>
> My environment were set up from default by performing the following
> steps :
>
> ecosconfig new at91sam7sek
> ecosconfig tree
> ecosconfig check
> make
>
> and then compiling and running the "serial.c" test
The eCos serial tests require a relevant serial hardware driver to be
enabled. You can do this by enabling the "Hardware serial device
drivers" component (CYGPKG_IO_SERIAL_DEVICES) within the "Serial device
drivers" package (CYGPKG_IO_SERIAL). The serial tests will use the
serial device defined by the "Serial device used for testing" option
(CYGPRI_SER_TEST_SER_DEV).
I hope this helps.
John Dallaway
eCos maintainer
http://www.dallaway.org.uk/john
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss