This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: How do I enable UART1 "/dev/ser1" on SAM7X-EK?
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: "stephan" <stephan at greenbyte dot co dot za>
- Cc: <ecos-discuss at ecos dot sourceware dot org>
- Date: 20 Feb 2008 17:20:39 +0000
- Subject: Re: [ECOS] How do I enable UART1 "/dev/ser1" on SAM7X-EK?
- References: <001e01c873df$ba207650$6401a8c0@stephlaptop>
"stephan" <stephan@greenbyte.co.za> writes:
> Hi
>
> I use eCosPro 2.0.67.
This query should really come direct to eCosCentric. However, while I
am here...
>
> How do I enable UART1 ("/dev/ser1") on the SAM7X-EK platform?
> >From the eCos configuration tool, under "Serial Device Drivers", I can't
> select "Atmel AT91 serial port 1 driver" - the checkbox is disabled.
>
> I (obviously then) get an error from:
>
> ErrorLookup = cyg_io_lookup( "/dev/ser1", &serial_hanle );
>
> Under eCos HAL, I've changed "Number of Communication Channels" to 3, I've
> also tried to use "/dev/tty1", with no avail?
I assume you have one or more of the RF modules installed. By default
the SAM7X-EK board only has RS232 transceivers on the DEBUG port and
USART0. Hence the HAL only enables those ports. If you want to enable
USART1 then you need to add
implements CYGINT_HAL_ARM_AT91_SERIAL_UART1
to hal_arm_at91_sam7xek.cdl, where the other two UARTs are
enabled. This should result in USART1 being fed clock and the PIO pins
being configured.
Hope this helps.
--
Nick Garnett eCos Kernel Architect
eCosCentric Limited http://www.eCosCentric.com The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
Besuchen Sie uns vom 26.-28.02.08 auf der Embedded World 2008, Stand 11-336
Visit us at Embedded World 2008, NÃrnberg, Germany, 26-28 Feb, Stand 11-336
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss