linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: MPC5200,PSC in uart mode, receiving problem
@ 2005-10-11  6:55 Derycke, Johan
  2005-10-11  7:18 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Derycke, Johan @ 2005-10-11  6:55 UTC (permalink / raw)
  To: achim.machura; +Cc: Linuxppc-Embedded (E-Mail)

[-- Attachment #1: Type: text/plain, Size: 1811 bytes --]

Hi Achim,

I also have the problem with uart blocking.
Could you please send me your changes to the driver so I can see if it works
for me.

Best regards,

Johan

-----Original Message-----
From: linuxppc-embedded-bounces@ozlabs.org
[mailto:linuxppc-embedded-bounces@ozlabs.org] On Behalf Of Achim Machura
Sent: maandag 10 oktober 2005 15:14
To: 'Tomasz Prochownik'
Cc: Linuxppc-Embedded (E-Mail)
Subject: AW: MPC5200,PSC in uart mode, receiving problem

Hello Tomasz

> blocks (there is no response in the console).

perhaps we have the same problem a few times ago.
When we connect devices on ttySx which have wrong level on the lines the
uart stay in break mode.

I have made some fixes on the psc-driver. With these fixes the uart works,
but i don't know how efficient.
(clear breakmode and clear buffer)

If you want, i can send the code


best regards
achim

_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
- - - - - - - DISCLAIMER- - - - - - - -
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liability for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.

[-- Attachment #2: Type: text/html, Size: 3044 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread
* MPC5200,PSC in uart mode, receiving problem
@ 2005-10-10 11:37 Tomasz Prochownik
  2005-10-10 13:13 ` AW: " Achim Machura
  0 siblings, 1 reply; 5+ messages in thread
From: Tomasz Prochownik @ 2005-10-10 11:37 UTC (permalink / raw)
  To: linuxppc-embedded

Hello.
I'm beginner in ppc linux, so I believe, you can help me. I hope you'll =
be able to understand my english :o).

I have MPC5200Lite board with Linux from Denx (kernel 2.4.25).
I try to use PSC in UART mode to read chars from other system.

My init ttyS function:

   i_Fd =3D open("/dev/ttyS2", O_RDWR | O_NOCTTY |O_NDELAY);

   if (i_Fd =3D=3D -1 )
   {DEBUG_OUT("[ERROR]\r\n");}
   else
   {
	 tcgetattr(i_Fd,&strBufOptions);=09
	 bzero(&strOptions, sizeof(strOptions));
	 strOptions.c_cflag =3D Baud | CS8 |CREAD |CLOCAL;
	 strOptions.c_iflag =3D 0;
	 strOptions.c_oflag =3D 0;
	 strOptions.c_lflag =3D 0;
	 strOptions.c_cc[VTIME] =3D 0;
	 strOptions.c_cc[VMIN] 	=3D 0;
	 tcflush(i_Fd, TCIFLUSH);
         tcsetattr(i_Fd,TCSANOW,&strOptions);
   }


Everything works fine until first framing error (FE)  in receiver. Since =
then function read(i_Fd,DataBuffer,CO_MAX_BUF_LEN-1) returns number of =
received chars, but value of every char in DataBuffer is zero.

I have done some experiments and noticed one more strange things:

1. I use hyperterminal in 115200 baud as root console
2. If I change speed to 9600, send one char to MPC5200 (framing error?) =
and change speed back to 115200 -> uart blocks (there is no response in =
the console).
..so maybe bug isn't in my code...?
I have read in errata about blocking uart receiver(bug ID: 364) , but I =
don't know it can be in my application.

Best regards

-=3D=3D=3D-
Tomasz Prochownik
MCD Electronics
33 861 60 35 w. 13
916@mcd.com.pl

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

end of thread, other threads:[~2006-02-02 18:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-11  6:55 MPC5200,PSC in uart mode, receiving problem Derycke, Johan
2005-10-11  7:18 ` Wolfgang Denk
2005-10-11  8:10   ` AW: " Achim Machura
2006-02-02 18:22     ` Frank Bodammer
  -- strict thread matches above, loose matches on Subject: below --
2005-10-10 11:37 Tomasz Prochownik
2005-10-10 13:13 ` AW: " Achim Machura

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).