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.

another problem about uart1 of dm355



I have changed the codes across the bellow articls:

http://community.ti.com/forums/t/2425.aspx  (UART1 Question and Some fuzzy situations)

http://e2e.ti.com/forums/p/8010/31144.aspx  (trouble with using UART (ttyS1) in MontaVista on DVEVM DM355)

http://e2e.ti.com/forums/p/2425/9179.aspx  (UART1 Question and Some fuzzy situations)

I want to use uart1 to control the PTZ, so I set the uart1 raw format.

Now, I can recieve data from uart1, and the oscillograph also can check it out.

But , the data recieve by uart1 is not the data i write to the uart1. For example, when I write bytes 0x55, the console connect with uart1 apear FF 00, the baud rate is 9600. there is no rules about this. when I write bytes 0xaa, the recieved data is F3 00 23.

I past some comand output informations:

root@seesoft:/# cat /proc/interrupts
           CPU0
  0:          0   vpfe_capture
  4:          0   dm644xh3a_af, dm644xh3a_aew
  5:          0   dm355_ipipe
  8:     277093   davinci_osd
 12:          1   musb_hdrc
 16:          0   EDMA Completion
 17:          0   EDMA CC Err
 18:          0   EDMA TC Error
 19:          0   EDMA TC Error
 26:      11086   mmc
 27:      11086   mmc
 32:         30   free-run counter
 33:          0   high-res timer
 35:     554211   system tick
 39:        128   i2c
 40:        180   serial
 41:        972   serial
 42:          0   dm_spi
 45:      42992   eth0
Err:          0

root@seesoft:/# stty -a < /dev/tts/1
speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z;
rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
root@seesoft:/#

root@seesoft:/# cat /proc/stat
cpu  759 0 1264 560556 2 363 323
cpu0 759 0 1264 560556 2 363 323
intr 957206 0 0 0 0 0 0 0 0 281622 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 11266 11266 0 0 0 0 31 0 0 563267 0 0 0 128 180 981 0 0 0 43616 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 44848 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ctxt 37439
btime 0
processes 1116
procs_running 1
procs_blocked 0
root@seesoft:/#

root@seesoft:/# cat /proc/tty/driver/serial
serinfo:1.0 driver revision:
0: uart:16550A mmio:0x01C20000 irq:40 tx:1383 rx:0 RTS|CTS|DTR|DSR
1: uart:16550A mmio:0x01C20400 irq:41 tx:952 rx:303 fe:7 brk:296 CTS|DSR
2: uart:16550A mmio:0x01E06000 irq:14 tx:0 rx:0 CTS|DSR
3: uart:unknown port:00000000 irq:0
root@seesoft:/#

root@seesoft:/# cat /proc/tty/driver/serial
serinfo:1.0 driver revision:
0: uart:16550A mmio:0x01C20000 irq:40 tx:1383 rx:0 RTS|CTS|DTR|DSR
1: uart:16550A mmio:0x01C20400 irq:41 tx:977 rx:307 fe:7 brk:300 CTS|DSR
2: uart:16550A mmio:0x01E06000 irq:14 tx:0 rx:0 CTS|DSR
3: uart:unknown port:00000000 irq:0
root@seesoft:/#

can you tell me why and how?