uCdot
search uCdot:
 
Embedded Linux and uClinux Developer Forum
 
uCdot
- FAQ
- Dev Boards
- Submit Story
- Submit FAQ
- Submit Dev Board
- Topics
- Authors
- About

- Preferences
- Older Stuff
- Past Polls
- Discussions
- Journals
- Messages

Embedded Linux
Mailing Lists
uClinux-dev (search)
Coldfire (search)
MTD
Microblaze (search)
ELUG
BDM-devel
Blackfin

Embedded Linux
Sites
uClinux.org
uClinux-Dist
uClibc
uClinux Directory
LinuxDevices
ARMulator
uClinux-elf-tools
Colilo
Kernel Archives
H8-uClinux
TLDP
Microblaze uClinux
BDM Tools
SkyEye (emulator)
LOM
SETR live CD
Blackfin uClinux

Embedded Linux
Companies
SecureComputing
SDCS
CodePoet
Arcturus
Cadenux
ARMtwister
uClinux.net
Xiptech
senTec
embedded^cl
Cwlinux
emlix
TimeSys
eSpark Infotech
SSV Embedded Systems
Embedded Minds
PeerSec Networks
Vortech Consulting
swissEmbedded
Synertronixx
Mbedthis Software
.vantronix
Aday
GraceLabs
Pengutronix
metux ITS
Codito Technologies
Firmix Software
PetaLogix
NuDesign
Merritt Technologies
WindRiver
OpenGear
Rubico
Analog Devices
Artila Electronics
Vyatta
Embest Info&Tech
Katalix Systems
WorkWare Systems
Kdev
Intellimetrix
Virtual Cogs
SYSGO
coresystems
ExactCODE
KOAN
EzHomeTech
Linux4biz
Linkodas
Trego
EMBEST
Boardcon
HITEG
FemtoLinux
Prosoft World
Witech

 
Serial Communication Problem with Wildfire using uClinux
Question Anonymous Brave Man writes "Hi,
I am using a Wildfire board which has Coldfire MCF5282 controller and uses uclinux v. 2.95.3. I tried to configure it for serial communication using following settings:

9600 baud rate,7 bits data,even parity,1 stop bit and no flow control.

Every other setting works fine except the 7 data bits setting. I am using struct termios for these settings.

And defining 7 databits using: c_cflag |= CS7;

I have included a code snippet below that I used for checking 7 bits. And the code returns true for the if condition which doesn't make sense.The code works fine for parity setting but not for databits settings. What could be the reasons for this problem?"

tios.c_cflag |= CS7;
tios.c_cflag |= PARENB;

databits = tios.c_cflag & CSIZE;
	if(databits==CS8){
	fprintf(stderr,"No of bits per byte is 8 %x\n",databits);
	}

Distributed Data Solution | vfork with child and parent commication?  >

 

 
uCdot Login
Nickname:

Password:

[ Create a new account ]

Related Links
  • Coldfire
  • uClinux
  • Anonymous Brave Man
  • More on Question
  • Also by davidm
  • This discussion has been archived. No new comments can be posted.
    Serial Communication Problem with Wildfire using uClinux | Login/Create an Account | Top | 3 comments | Search Discussion
    Threshold:
    The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
    Try doing: (Score:2)
    by davidm (david_mccullough@securecomputing.com) on Tuesday June 09, @04:26AM (#577)
    User #2 Info | http://www.securecomputing.com/ | Last Journal: Friday May 11, @09:05AM
    tios.c_cflag &= ~CSIZE;
    tios.c_cflag |= CS7;

    If that fails, check the values for CS7 and CS8.
    SAeGrqzEGE (Score:0)
    by Anonymous Coward on Monday August 17, @04:50PM (#586)
    qpRj17 hxgmmqavkmhi [hxgmmqavkmhi.com], [url=http://bgmnecawycwg.com/]bgmnecawycwg[/url], [link=http://exqshcxowjiu.com/]exqshcxowjiu[/link] , http://vzmvtecqwzoz.com/
    supra (Score:0)
    by Anonymous Coward on Wednesday December 02, @04:56PM (#603)
    tk shoes [shoes54.com]

    The Embedded Linux and uClinux Developer Forum is hosted by: SnapGear If you explain so clearly that nobody can misunderstand, somebody will.

    [ home | contribute story | older articles | past polls | faq | authors | preferences ]