I'm trying to get to the values of data stored in memory on the Beaglebone
Black and experiencing a very fundamental problem.  I have the following C
code running in Linux.

int *p;
int value;

p = (int *)0x4A300000;        // Start of PRU0 data ram
 printf("p addr: 0x%x\n", p);
 value = *p;
 printf("value: 0x%x\n", value);

p prints fine but trying to print *p or value gives a Segmentation fault.
Can anyone explain to me what is going on and how I can get to the data
stored at a memory location on the BeagleBone?

Thanks,

Mike Pitman

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAJ2u6KPOcX0Eu6Nqy5ry%3D_D36B-CL79hvmZ5G4_sPZa%2BZTZprQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to