Reply by Mark Robinson June 9, 20062006-06-09
jayadevan wrote:
> > Actually the problem is that I dont know what is the code to perform this > task.I was not able to find any API function for memory access.
What would be wrong with Uint8 current_val; Uint8 *pMyStuff = (Uint8 *)0x80100001; int i; for (i=0; i<30000; i++) { current_val = pMyStuff[i]; DoSomething(current_val); } You have to be careful with cache coherency though - if the data arrives in locations 0x80100001 onwards without passing through the CPU (e.g. by DMA), then invalidate the cache before using it. It may be more efficient to copy the data into internal RAM using DMA before using it. The steps to doing this are roughly: 1. Make sure your MEM configuration includes a segment for internal RAM 2. Make sure that there's a heap defined in that segment 3. In your code, use MEM_alloc to allocate a buffer from the internal heap 4. Use DAT_copy and DAT_wait to copy from 0x80100001 into your buffer 5. Process your buffer The cache issues are the reverse of the above - DAT_copy *bypasses* the cache, so you may need to flush before copying. The CACHE module deals with cache maintenance. Cheers mark-r -- "Let's meet the panel. You couldn't ask for four finer comedians - so that answers your next question..." -- Humphrey Lyttleton
Reply by jayadevan June 8, 20062006-06-08
>hi >I am working with DSP/BIOS.using DSP/BIOS i am supposed to read 30000
data
>stored in the SDRAM of DSK6711 starting from memory location >0x80100001. > >Will it work using the MEM module of DSP/BIOS? > >
Actually the problem is that I dont know what is the code to perform this task.I was not able to find any API function for memory access. The selection of the starting memory location was just coincidential and I chose the starting memory location
Reply by June 7, 20062006-06-07
MEM will of course work, but i guess u will have a pointer to that location,
if u have stored some specific data over there..so what exactly is the
problem and why do have that particular address to read??..
-Vishal
"jayadevan" <jaggunitj@yahoo.co.uk> wrote in message
news:GsmdnXj3QvqGyxvZnZ2dnUVZ_ridnZ2d@giganews.com...
> hi > I am working with DSP/BIOS.using DSP/BIOS i am supposed to read 30000 data > stored in the SDRAM of DSK6711 starting from memory location > 0x80100001. > > Will it work using the MEM module of DSP/BIOS? >
Reply by jayadevan June 7, 20062006-06-07
hi 
I am working with DSP/BIOS.using DSP/BIOS i am supposed to read 30000 data
stored in the SDRAM of DSK6711 starting from memory location 
0x80100001.

Will it work using the MEM module of DSP/BIOS?