This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: UART communication
- To: Andreas dot Karlsson at combitechsystems dot com
- Subject: Re: [ECOS] UART communication
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 05 Sep 2000 17:04:46 +0100
- CC: ecos-discuss at sourceware dot cygnus dot com, aeb at arm dot com
- Organization: Red Hat UK Ltd.
- References: <2253171AF143D21185A60000F8FA748B0229A94D@pluto.combitech.se>
Andreas.Karlsson@combitechsystems.com wrote:
>
> While receiving several bytes on the UART0 port on my AEB-board the
> eCos-serialdriver says it only received 1 byte with the value of 0.
>
> The incoming data looks very nice on an oscilloscope.
>
> Just to be sure that I hadn't messed something up in my receiver-thread I
> connected the TX and the RX pin and sent 4 bytes, the packet was received
> just as it should.
>
> I compiled the ser0 with a baud rate of 57600 since that's the only one I
> can use. The other settings are 1 stop bit, no parity, wordsize=8 and
> CTS/RTS enabled.
Can you clarify what you mean by CTS/RTS enabled? How did you enable this?
> I noticed that the baudrate of 57600 wasn't supported in aeb_serial.h but
> what happens when I make this selection in the configuration?
>
> To be able to enable CTS/RTS I had to modify the select_baud-array in
> aeb_serial.h. This because I should be able to set all fields in the
> cyg_serial_info_t struct. I added the value of 26 on the bauddivisor for
> 57600, maybe this is the problem.
Does 57600 bps communication work normally?
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault