[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with Serial Port




----- Original Message ----- 
From: "Santiago Cobreces Alvarez" <cobreces@xxxxxxx.es>
To: <dev-etrax@xxxxxxx.com>
Sent: den 2 september 2003 19:19
Subject: Problem with Serial Port


> Hello:
> 
> I'm using DevBoard LX with a 2.4.19 kernel and I'm trying to use
> /dev/ttyS0 but I'm not able to use it.
> 
> When I do:
> 
> $echo "testing" > /dev/ttyS0
> 
> I can't see any line moving with the oscilloscope in COM1. I've tried
> also with "hwtestserial" and some C self-made programs with the same
> negative result.
> 
> I'm in a real hurry and I would appreciate very much any help with this.
> I think the problem is with my kernel config, but I'm not sure. Please
> help me.

Check your kernelconfig and make sure that the PA0 pin is set to 0 
(/SERIAL_INIT) to enable serial output or set PA0 to 0 with hwtestserial 
or other utility.

Example of working kernelconfig entries:
CONFIG_ETRAX_DEF_R_PORT_PA_DIR=1d
CONFIG_ETRAX_DEF_R_PORT_PA_DATA=f0

/Johan