[beagleboard] Re: How to exchange data between host C prog and PRU C prog?

2015-01-13 Thread Karteek YV
I'm trying to use local address while writing from PRU and use global 
address while reading from host C prog. Proper global and local address 
schemes for local mapping and global mapping of the 12KB shared memory is 
what I'm confused about. 
 /* in PRU code */
float *a;   
a = 0x1000   /*local memory mapping of 12KB memory */
*a = 1;

'a' will be incremented in a loop whenever a particular GPIO pin is toggled 
   i'm confused about global mapping of the 12KB memory to access it from 
host C at regular intervals of time.


On Monday, 12 January 2015 11:40:18 UTC+5:30, serge...@gmail.com wrote:



 You may use prussdrv_map_prumem(...) to map PRU memory to host (C-client) 
 utility.

 If no pin state change, first of all you should show us your pin mux 
 settings of the respective pins.
 HTH 


-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: How to exchange data between host C prog and PRU C prog?

2015-01-11 Thread serge . nsk14


You may use prussdrv_map_prumem(...) to map PRU memory to host (C-client) 
 utility.

If no pin state change, first of all you should show us your pin mux 
settings of the respective pins.
HTH 

-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.