TI E2E Community (Beta)
Welcome to the TI E2E (Engineer-to-Engineer) Community! We invite you to freely and openly interact with your peer Engineers, TI Engineers, and other experts in order to ask questions, share knowledge, explore ideas, and help solve problems.
More Search Options

another problem about uart1 of dm355

rated by 0 users
Answered (Verified) This post has 3 verified answers | 4 Replies | 2 Followers

Not Ranked
10 Posts
Community Member
Bo Yang posted on 1 Nov 2009 9:24 PM

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?

 

Answered (Verified) Verified Answers

Top 10 Contributor
2,567 Posts
Texas Instruments Employee

On our DM355 EVM, the code changes suggested on http://e2e.ti.com/forums/p/8010/31144.aspx should work.

Top 10 Contributor
2,567 Posts
Texas Instruments Employee
Verified by Bo Yang

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).

Not Ranked
10 Posts
Community Member
Verified by Bo Yang

Thanks a lot! I set the baud rate of uart1 to 2400, now I can recieve the data rightly.

All Replies

Top 10 Contributor
2,567 Posts
Texas Instruments Employee

On our DM355 EVM, the code changes suggested on http://e2e.ti.com/forums/p/8010/31144.aspx should work.

Not Ranked
10 Posts
Community Member

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.

Top 10 Contributor
2,567 Posts
Texas Instruments Employee
Verified by Bo Yang

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).

Not Ranked
10 Posts
Community Member
Verified by Bo Yang

Thanks a lot! I set the baud rate of uart1 to 2400, now I can recieve the data rightly.

Page 1 of 1 (5 items) |

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.