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 eth0Err: 0
root@seesoft:/# stty -a < /dev/tts/1speed 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 -imaxbelopost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echokeroot@seesoft:/#
root@seesoft:/# cat /proc/statcpu 759 0 1264 560556 2 363 323cpu0 759 0 1264 560556 2 363 323intr 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 0ctxt 37439btime 0processes 1116procs_running 1procs_blocked 0root@seesoft:/#
root@seesoft:/# cat /proc/tty/driver/serialserinfo:1.0 driver revision:0: uart:16550A mmio:0x01C20000 irq:40 tx:1383 rx:0 RTS|CTS|DTR|DSR1: uart:16550A mmio:0x01C20400 irq:41 tx:952 rx:303 fe:7 brk:296 CTS|DSR2: uart:16550A mmio:0x01E06000 irq:14 tx:0 rx:0 CTS|DSR3: uart:unknown port:00000000 irq:0root@seesoft:/#
root@seesoft:/# cat /proc/tty/driver/serialserinfo:1.0 driver revision:0: uart:16550A mmio:0x01C20000 irq:40 tx:1383 rx:0 RTS|CTS|DTR|DSR1: uart:16550A mmio:0x01C20400 irq:41 tx:977 rx:307 fe:7 brk:300 CTS|DSR2: uart:16550A mmio:0x01E06000 irq:14 tx:0 rx:0 CTS|DSR3: uart:unknown port:00000000 irq:0root@seesoft:/#
can you tell me why and how?
On our DM355 EVM, the code changes suggested on http://e2e.ti.com/forums/p/8010/31144.aspx should work.
The latest DVSDK software for DM355 can be found at http://software-dl.ti.com/dsps/dsps_registered_sw/sdo_sb/targetcontent/dvsdk/mv_dvsdk/index.html
I would recommend using the latest (DVSDK 2.0).
Thanks a lot! I set the baud rate of uart1 to 2400, now I can recieve the data rightly.
My lsp is: mvl_4_0_1_demo_lsp_setuplinux_01_20_00_014.bin
Maybe this verison of LSP is not match with DM355? Can you tell where to download the right verison of LSP. thank you.
ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". TI AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY TI. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM TI.
Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.