Hi ,

I am working on M5329EVBE board running on uClinux(2.6.22).

When I configured UART baud rate as 460800 and tested, the number of bytes 
received is same as number of bytes sent.
But I find data received is not proper.

But when I tested with baud rate 115200, everything is working fine.
Do we have to take care of any configuration item when using baud rate 460800.
Any suggestion would be highly appreciated.
Find the UART initialization code below

// UART initialization code
    ((unsigned int *)(options.c_cc))[0] = 0x157F1C03;
    ((unsigned int *)(options.c_cc))[1] = 0x10504;
    ((unsigned int *)(options.c_cc))[2] = 0x1A1311;
    ((unsigned int *)(options.c_cc))[3] = 0x16170F12;


    ((unsigned int *)(options.c_cc))[4] = 0;
    ((unsigned int *)(options.c_cc))[5] = 0;
    ((unsigned int *)(options.c_cc))[6] = 0;
    ((unsigned int *)(options.c_cc))[7] = 0;

tcsetattr(PziggyUartFd, TCSANOW, &options);

  tcgetattr(PziggyUartFd, &options);

    /*
     * Set the baud rates to 460800...
     */

    cfsetispeed(&options, B460800);
    cfsetospeed(&options, B460800);

    /*
     * Enable the receiver and set local mode...
     */

    options.c_cflag |= (CLOCAL | CREAD);

    /*
     * Enable the RTS and CTS
     */

    options.c_cflag |= CRTSCTS;

    options.c_lflag &= ~(ICANON | ECHO | ECHOE );

    tcsetattr(PziggyUartFd, TCSANOW, &options);

Thanks and Regards
Sankar





**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage 
you may sustain as a result of any virus in this e-mail. You should carry out 
your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this 
e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to