linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* SCC2 and SCC3 serial ports on RPX Classic (MPC860)
@ 2003-03-26 19:17 Dmitriy.Zavin
  2003-03-26 20:27 ` Dan Malek
  2003-03-26 21:54 ` Wolfgang Denk
  0 siblings, 2 replies; 6+ messages in thread
From: Dmitriy.Zavin @ 2003-03-26 19:17 UTC (permalink / raw)
  To: linuxppc-embedded


Hey all,

I'm using the Embedded Planet RPX Classic LF SBC (MPC860 onboard).
I compiled the 2.4.7 kernel (from TimeSYS) with SCC2 and SCC3 enabled for IO. I have a break-out board where I manually hook into the TXD/RXD/GND pins (Port A, pins 12/13). Now, I'm sending a pattern (FOOOOOO) from the SBC to /dev/tts/1 (SCC2) which is connected to a windows box on COM1. All I get on COM1 is garbage. But its not random. I made sure to set all the baud/stop bits/parity manually through IOCTL calls to make sure its right, but still no go. And SCC3 (/dev/tts/2) is completely unresponsive. Writing data to it always blocks the program. I have to ^C, because nothing shows up on the other side of the serial link. Its very puzzling.

Do I have to hook up all the CTS/RTS lines in order to get it to work? I thought that TX/RX/GND was enough?

Any ideas??

Thanks a lot in advance.

--Dima

Some info:

CPM UART driver version 0.03
ttyS00 at 0x0280 is a SMC
ttyS01 at 0x0100 is a SCC
ttyS02 at 0x0200 is a SCC

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: SCC2 and SCC3 serial ports on RPX Classic (MPC860)
@ 2003-03-26 22:21 Chuck Partridge
  0 siblings, 0 replies; 6+ messages in thread
From: Chuck Partridge @ 2003-03-26 22:21 UTC (permalink / raw)
  To: Dmitriy.Zavin; +Cc: <


Is this string sent by a program loaded via insmod and busybox?

I had a problem with drivers loaded as modules when using busybox.  The wrong strings would be sent when I did printk.  It drove me nuts for days.  I installed the true version of insmod and all worked fine.

Maybe it helps,

Chuck

>>> <Dmitriy.Zavin@infineon.com> 03/26/03 04:11PM >>>

Wolfgang,

What I mean by "not random" is this:
I write a string to /dev/tts/1, which will cause another string to be printed on the remote console. If I repeat this 50 times, the same messed up string will appear.

Thanks.

I hope that answers the question.

--Dima

>In message
><FD90897E35ABD311AE0E0008C7E6404A07192EDE@ca02exch4.sjc.infineo
>n.com> you wrote:
>>
>> I compiled the 2.4.7 kernel (from TimeSYS) with SCC2 and
>SCC3 enabled for IO. I have a break-out board where I manually
>hook into the TXD/RXD/GND pins (Port A, pins 12/13). Now, I'm
>sending a pattern (FOOOOOO) from the SBC to /dev/tts/1 (SCC2) which is
>> connected to a windows box on COM1. All I get on COM1 is
>garbage. But its not random. I made sure to set all the
>baud/stop bits/parity manually through IOCTL calls to make
>sure its right, but still no go. And SCC3 (/dev/tts/2) is
>completely unresponsive
>
>What exactly do you mean with "garbage, but not completely random"?
>
>Is it the ordinary type of "line noise" as you get when the baud rate
>is wrong, or do you get  valid  characters,  but  only  every  second
>character  gets  output?  If  you  get  every  second character, this
>usually means that your console port is misconfigured.
>
>Best regards,
>
>Wolfgang Denk
>
>--
>Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
>Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
>Always try to do things in chronological order; it's  less  confusing
>that way.
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: SCC2 and SCC3 serial ports on RPX Classic (MPC860)
@ 2003-03-26 22:38 Dmitriy.Zavin
  2003-03-26 23:57 ` Wolfgang Denk
  0 siblings, 1 reply; 6+ messages in thread
From: Dmitriy.Zavin @ 2003-03-26 22:38 UTC (permalink / raw)
  To: Chuck_Partridge; +Cc: linuxppc-embedded


>Is this string sent by a program loaded via insmod and busybox?
>
>I had a problem with drivers loaded as modules when using
>busybox.  The wrong strings would be sent when I did printk.
>It drove me nuts for days.  I installed the true version of
>insmod and all worked fine.

This is using busybox, but no modules have been loaded. SCC Uart support was built-in to the kernel.

I also took a look at the hex values that I actually receive and it does NOT look like the bit-string is offset by any bits. There's no direct mapping that I can see..

Thanks.

--Dima

>
>Maybe it helps,
>
>Chuck
>
>>>> <Dmitriy.Zavin@infineon.com> 03/26/03 04:11PM >>>
>
>Wolfgang,
>
>What I mean by "not random" is this:
>I write a string to /dev/tts/1, which will cause another
>string to be printed on the remote console. If I repeat this
>50 times, the same messed up string will appear.
>
>Thanks.
>
>I hope that answers the question.
>
>--Dima
>
>>In message
>><FD90897E35ABD311AE0E0008C7E6404A07192EDE@ca02exch4.sjc.infineo
>>n.com> you wrote:
>>>
>>> I compiled the 2.4.7 kernel (from TimeSYS) with SCC2 and
>>SCC3 enabled for IO. I have a break-out board where I manually
>>hook into the TXD/RXD/GND pins (Port A, pins 12/13). Now, I'm
>>sending a pattern (FOOOOOO) from the SBC to /dev/tts/1 (SCC2) which is
>>> connected to a windows box on COM1. All I get on COM1 is
>>garbage. But its not random. I made sure to set all the
>>baud/stop bits/parity manually through IOCTL calls to make
>>sure its right, but still no go. And SCC3 (/dev/tts/2) is
>>completely unresponsive
>>
>>What exactly do you mean with "garbage, but not completely random"?
>>
>>Is it the ordinary type of "line noise" as you get when the baud rate
>>is wrong, or do you get  valid  characters,  but  only  every  second
>>character  gets  output?  If  you  get  every  second character, this
>>usually means that your console port is misconfigured.
>>
>>Best regards,
>>
>>Wolfgang Denk
>>
>>--
>>Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
>>Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
>>Always try to do things in chronological order; it's  less  confusing
>>that way.
>>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-03-26 23:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-26 19:17 SCC2 and SCC3 serial ports on RPX Classic (MPC860) Dmitriy.Zavin
2003-03-26 20:27 ` Dan Malek
2003-03-26 21:54 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2003-03-26 22:21 Chuck Partridge
2003-03-26 22:38 Dmitriy.Zavin
2003-03-26 23:57 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).