Using Remoteproc and the scratchpad

44 views
Skip to first unread message

captainli...@gmail.com

unread,
Feb 27, 2019, 11:48:00 AM2/27/19
to BeagleBoard

Hello guys,

I am trying to make an ADC using the PRU. I want to use one core as SPI master and send the samples to the second core using scratchpad . On the second core i want to do some DSP and than send it to the arm using REMOTEPROC/RPMsg. The problem i am walking in to is that there is next to no explanation on remoteproc or scratchpad. Are there better resources on these topics? or are there better solutions to what i am trying to accomplish? has anyone written a library in C for REMOTEPROC/RPMsg. I do not mind researching but there is so little information that i am left to copy pasting different parts of the TI examples which do not explain anything.

Mark A. Yoder

unread,
Feb 28, 2019, 9:45:42 AM2/28/19
to BeagleBoard
Have you seen the PRU Cookbook[1]?  In chapter 7[2] I give a simple example of passing data between the two PRUs using xin() and xout().  It's a simple example, but a start.

Dan Julio

unread,
Feb 28, 2019, 12:04:13 PM2/28/19
to BeagleBoard
Programming PRUs is a bit of a moving target as the mechanisms have changed and evolved and a lot of documentation is out-of-date.  I used some of Mark's stuff and well as the cut&paste&try method too.

I'm not using the scratchpad but I did write an application that moves data between PRUs using a circular buffer in the shared memory block.  Maybe there is some helpful information there.

https://github.com/danjulio/lepton/tree/master/beaglebone/pru_rpmsg_fb

Charles Steinkuehler

unread,
Feb 28, 2019, 4:15:22 PM2/28/19
to beagl...@googlegroups.com
On 2/27/2019 3:39 AM, captainli...@gmail.com wrote:
>
> The problem i am walking in to is that there is next to
> no explanation on remoteproc or scratchpad. Are there better resources on
> these topics?

Remoteproc is a standard Linux kernel feature, so start with the
kernel's Documentation/ directory:

https://www.kernel.org/doc/Documentation/remoteproc.txt


The scratchpad is documented quite well in the PRU reference
materials, see section 5.2.4:

https://github.com/beagleboard/am335x_pru_package/blob/master/am335xPruReferenceGuide.pdf

--
Charles Steinkuehler
cha...@steinkuehler.net
Reply all
Reply to author
Forward
0 new messages