DSPRelated.com
Forums

help me tigersharc sdram dma ee143

Started by zhang fan March 14, 2004
hi,all

i am using visualdsp 2.0 for tigersharc.

when i try the provided code of ee143 (dma sdram in c
code),i find out i can write to sdram,but can't get
the word back.

the word write to "sdram_data" is right.
but the back data in "data_rx" is wrong ,some words
lost

for example i trans 16 words,

data_rx
00000000 00000000 00000000 00000000
55555555 66666666 77777777 88888888
99999999 aaaaaaaa bbbbbbbb cccccccc
dddddddd eeeeeeee ffffffff f0f0f0f0

the first line should be
11111111 22222222 33333333 44444444 __builtin_sysreg_write(SYSCON,0x003879E7);
__builtin_sysreg_write(SDRCON,0x00005B05);

hele me ,where is the mistake? best regardS!
f .z

_________________________________________________________