This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to set UART baud rate using TIOCSSERIAL IOCTL

Hi,

As per the release notes "http://processors.wiki.ti.com/index.php/AM335x-PSP_04.06.00.03_Features_and_Performance_Guide#UART_Driver"  TIOCSSERIAL IOCTL.support is available.

So I just tried using this ioctl to set baud rate.

I have used TIOCSSERIAL IOCTL in my application. I set the required parameters.

But while running the application I am getting error -1 , which corresponds to "operation not permitted"

 Please let me know, how to proceed to set different baudrates.

I know command stty, but I want to configure the baudrate using application only.

 

Regards,

Santhosh