TI Programmable Real-time Unit software support package issues

66 views
Skip to first unread message

Cheng Chen

unread,
Apr 23, 2021, 4:55:59 PM4/23/21
to BeagleBoard
Hi all, 

I am new learner of Beaglebone Black and I was trying to follow the examples of Programmable Real-time Unit software support package from TI. 
I think there was a tutorial website previously but now it's obsolete. I wonder if anybody knows where those materials is available? 
The reason I asked is I am not able to successfully run any examples except PRU_gpioToggle. In particular I am interested in RPMsg transfer between ARM and PRU. For example, PRU_ADC_onChip, after I built the firmware and userspace code, and run ./pru_adc_userspace -c 5. It just shows error messages. 

Reading voltage at ADC Channel: 5
/dev/rpmsg_pru30 could not be opened.
Trying to initialize PRU using sysfs interface.
ERROR: Could not open /dev/rpmsg_pru30

I think it should be just some minor issues like driver missing and such. But I don't know where to start debugging. It would be nice that if anybody knows where the tutorial is. I feel like I'm just trying in the dark. Thanks. 

Regards,
Cheng

pierric...@gadz.org

unread,
Apr 23, 2021, 5:31:18 PM4/23/21
to beagl...@googlegroups.com
Have you check M Yoder PRU cookbook?

Pierrick Rauby

On 23 Apr 2021, at 16:56, Cheng Chen <chen...@gmail.com> wrote:

Hi all, 
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/b0dc4e7b-edd7-45f7-b54b-28a9cedd6a2an%40googlegroups.com.

Mark Lazarewicz

unread,
Apr 23, 2021, 5:38:16 PM4/23/21
to beagl...@googlegroups.com
Have you looked at  libruio? it fix everything.
 free support as well in group by TJ.

Cheng Chen

unread,
Apr 23, 2021, 5:43:35 PM4/23/21
to BeagleBoard
Thanks for the suggestion. This looks like a very well documented reference. I will take a look at it. Does it cover PRU based ADC? I cannot tell from the outline. 

Cheng  

Cheng Chen

unread,
Apr 23, 2021, 5:46:03 PM4/23/21
to BeagleBoard
It's either remoteproc or uio right? To be honest, I don't know much about the difference. But I am following the book by Derek Molly and in his book, he promotes remoteproc. 

Regards,

Vinicius Juvinski

unread,
Apr 23, 2021, 5:49:03 PM4/23/21
to beagl...@googlegroups.com
I recommend for some directions and concepts the pru cookbook

https://markayoder.github.io/PRUCookbook/

Sent from my iPhone


Em 23 de abr. de 2021, à(s) 18:46, Cheng Chen <chen...@gmail.com> escreveu:

It's either remoteproc or uio right? To be honest, I don't know much about the difference. But I am following the book by Derek Molly and in his book, he promotes remoteproc. 

Cheng Chen

unread,
Apr 23, 2021, 6:18:42 PM4/23/21
to BeagleBoard
Thanks Vinicius. This is a great recommendation!

Cheng

pierric...@gadz.org

unread,
Apr 23, 2021, 6:34:47 PM4/23/21
to BeagleBoard
As far as I remember the cookbook does not cover the ADC but I believe there are some simple ADC-read example directly in the image under /var/lib/cloud9/Techlab/.challenges, or here: https://github.com/beagleboard/cloud9-examples/blob/master/PocketBeagle/TechLab/.challenges/analogIn.pru0.c
They are labeled for PocketBeagle but it's the same ti-am335x chip so they should work easily on the BBB. 

Also this recent thread should be useful! https://groups.google.com/g/beagleboard/c/-WlvGEaqrKU 
Hope it helps! 
Pierrick 

Cheng Chen

unread,
Apr 24, 2021, 11:48:05 PM4/24/21
to BeagleBoard

Hi Pierrick, 

Thanks for the recommendation. They look very useful references. I will read them over. Appreciate your help!

Cheng
Reply all
Reply to author
Forward
0 new messages