This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: How do I enable UART1 "/dev/ser1" on SAM7X-EK?


Hi Nick,

Your suggestion solved my problem.
Thank you very much!

Regards
Stephan Pienaar

-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Nick Garnett
Sent: 20 February 2008 07:21 PM
To: stephan
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] How do I enable UART1 "/dev/ser1" on SAM7X-EK?

"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


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]