Google-apper
Hovedmeny

Post a Comment On: Ken Shirriff's blog

"PRU tips: Understanding the BeagleBone's built-in microcontrollers"

6 Comments -

1 – 6 of 6
Blogger curveship said...

Great article! Wish I had it when I was getting started with the PRU. One small factual correction. You write:

> Each instruction takes 5 nanoseconds (at 200 MHz).

That's not correct for read instructions, some of which have a best-case of over 100 cycles. See http://processors.wiki.ti.com/index.php/AM335x_PRU_Read_Latencies .

If you need very precise timing, you'll probably need to poll the IEP timer, which ticks at a guaranteed 200MHz.

August 31, 2016 at 12:11 PM

Blogger Ken Shirriff said...

Thanks, curveship - very good point! I've updated the article.

August 31, 2016 at 12:29 PM

Blogger przemek said...

You use the UIO infrastructure, which is older and well-established, but it is being phased out by the general remoteproc/remotemsg infrastructure for coprocessors and multi-cpu machines. Newer kernels used to only contain remoteproc, which made uio people unhappy, but Robert Nelson and others managed to backport uio so it's also available now. Still, remoteproc is more general and looks like will be the thing to use in the future.

September 6, 2016 at 12:10 PM

Blogger WilliamKing said...

nice

November 21, 2016 at 1:48 AM

Anonymous Stan said...

Thanks a lot! This page is helping me really out to make my first steps with the PRU. Unfortunately there is the issue with the cape-manager not being enabled since the kernel version 3.8. Now I'm still trying to figure out how to connect the PRU-GPIO-EXAMPLE with my Device Tree on my BBB with the Linux Version 4.4.9. Now the cape manager moved to /sys/devices/platform/bone_capemgr/slots and the way to handle it is described in the manual to be something like:

sh -c "echo 'PRU-GPIO-EXAMPLE' > /sys/devices/platform/bone_capemgr/slots"

But still I couldn't get it running due to some I/O Problems.

January 14, 2017 at 3:17 PM

Blogger Unknown said...

I am very happy to find and read this article, The most well explained about PRUs on BBB.

I got BBB and using rt kernel (4.8.13-rt6) on it. In this case, rt kernel automatically uses two PRUs?

Thanks in advance.

Jerry

September 27, 2017 at 6:42 PM

You can use some HTML tags, such as <b>, <i>, <a>

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot