[beagleboard] Re: Accessing DDR from PRU-ICSS

2015-02-02 Thread Satya
Hi Rakesh, Do you have any idea regarding using PRU to access the flash ?? Thanks, pratap On Wednesday, August 20, 2014 at 3:39:12 AM UTC-5, rakesh.safir wrote: Hi Cmicali, I was successfuly able to access the ddr from C code through a little workaround though. I kept the

[beagleboard] Re: Accessing DDR from PRU-ICSS

2014-08-20 Thread rakesh.safir
Hi Cmicali, I was successfuly able to access the ddr from C code through a little workaround though. I kept the OCP initialisation in inline assembly and rest of the code in C. It works like a charm :) Really for your help. Your example helped me solve the access issue. Cheers !! Rakesh On

[beagleboard] Re: Accessing DDR from PRU-ICSS

2014-08-19 Thread rakesh.safir
Hi Cmicali, Really appreciate your help. I was able to run the example successfully. The linux side code for memory allocation was the same as suggested by you. Same was suggested on the post http://hipstercircuits.com/beaglebone-pru-ddr-memory-access-the-right-way/ I'm trying to achieve

[beagleboard] Re: Accessing DDR from PRU-ICSS

2014-08-19 Thread cmicali
Rakesh, Sorry - when we did all the PRU work the c/c++ PRUSS compiler was not available yet, so I haven't looked at it yet. Our code was pretty timing sensitive so using pru assembly was probably the right way to go anyway. -c On Tuesday, August 19, 2014 3:31:17 AM UTC-4, rakesh.safir

[beagleboard] Re: Accessing DDR from PRU-ICSS

2014-08-18 Thread TJF
I didn't check all your code (*../sage_pru.hp* is missing, so I don't know how MEM_PRU_DATA0_BASE is defined). But: From the PRU-0 point of view, the address of DRam-0 is *0x0* (and DRam-1 is 0x2000). -- For more options, visit http://beagleboard.org/discuss --- You received this message

[beagleboard] Re: Accessing DDR from PRU-ICSS

2014-08-18 Thread cmicali
That file is in the repo, you can find it here: https://github.com/sagedevices/am335x_pru_package/blob/master/pru_sw/example_apps/sage_pru.hp But yes, you are right on those constants. #define MEM_PRU_DATA0_BASE 0x #define MEM_PRU_DATA1_BASE 0x2000 #define MEM_PRU_SHARED_BASE

[beagleboard] Re: Accessing DDR from PRU-ICSS

2014-08-14 Thread cmicali
Rakesh, We posted an example of DDR access @ https://github.com/sagedevices/am335x_pru_package/tree/master/pru_sw/example_apps/ddr_access -c On Wednesday, August 13, 2014 5:22:49 PM UTC-4, rakesh.safir wrote: Hi, I want to use the DCAN interface on PRU-ICSS to send/receive data