Evening all,
Using the below I can Read/Write ARM/DSP DDR memory using
Physical addresses, load and execute programs in the DSP
etc. (maps entire 256MB)...
int fd;
void *map;
if ((fd=open("/dev/mem",O_RDWR|O_SYNC))==-1) exit(1);
map=mmap((void
*)0x80000000,0x10000000,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_SHARED,fd,0x8
0000000);
if (map!=(void *)0x80000000) exit(1);
Cheers
Rudy
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> ] On Behalf Of Carlos Ojea
> Sent: 21 December 2006 14:30
> To: Sander Huijsen
> Cc: [email protected]
> Subject: Re: Accesing dsp's memory (ddr2)
>
> That's right. On DVEVM there are 256Mb. First 120Mb are for
> linux, next 8Mb are used by cmem for some buffering, last
> 128Mb are reserved for dsp.
> I could read dsp memory (from 0x88000000 to 0x8FFFFFFF) but
> it fails when I attempt to do a write ... don't know why
>
> Thanks,
> Carlos
> _______________________________________________
> Davinci-linux-open-source mailing list
> [email protected]
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
>
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source