app uart in imx233

cancel
Showing results for 
Search instead for 
Did you mean: 

app uart in imx233

797 Views
tarique472
Contributor I

hi all,

i am trying to send the data through serial port(app uart) in imx233.

and running the code in minicom. i got like that.

root@freescale ~$ ./trans 

open_port: Unable to open /dev/ttyUSB1 - : No such file or directory
write() of 4 bytes failed!
root@freescale ~$

i think ttyUSB1 is not enable. so waht i have to do. i am new for this platform.

please help me.....thanks in advanced!!!!

Tags (2)
0 Kudos
5 Replies

351 Views
Balaji_ng
Contributor III

Hi,

     Check the port settings using "stty" tool. Just cross check if you have enabled software flow control in the hyperterminal, as your code has it enabled. I feel there is something to do with your serial port settings.

Regards,

Balaji.V

0 Kudos

351 Views
JayZhang
Contributor I

first, you can check the permission of the node of device...

ls -l /dev/ttyYSB1

0 Kudos

351 Views
tarique472
Contributor I

tarique:

           Hi, 

                yeah, i changed the terminal  /dev/ttyUSB1 to /dev/ttySP0. but after changing

                while i am running the application on target, port is opening sucessfully,

                but the output is not comming in hyperterminal. so, is there any mistake in code.

                thanks in advanced.........

                Regards,

                Tarique

0 Kudos

351 Views
tarique472
Contributor I



Balaji said:

Hi,

     The device you are trying to access is wrong. I dont think it will get exposed as /dev/ttyUSB1. Check how your AppUART is getting exposed in /dev/ directory. I think it will be /dev/ttySP1 or /dev/ttySP0.

Hope this helps.

Regards,

Balaji.V

0 Kudos

351 Views
Balaji_ng
Contributor III

Hi,

     The device you are trying to access is wrong. I dont think it will get exposed as /dev/ttyUSB1. Check how your AppUART is getting exposed in /dev/ directory. I think it will be /dev/ttySP1 or /dev/ttySP0.

Hope this helps.

Regards,

Balaji.V

0 Kudos