<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Coding for the BeagleBone PRU with C in 2019</title><link>/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/coding-for-the-beaglebone-pru-with-c-in-2019</link><description>So, I&amp;#39;ve recently decided to get my head around the killer feature of the BeagleBone family - the two Programmable Realtime Units that sit alongside the ARM Cortex A8 core that you&amp;#39;ll normally find running Linux. These PRUs are what really se...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Coding for the BeagleBone PRU with C in 2019</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/coding-for-the-beaglebone-pru-with-c-in-2019</link><pubDate>Fri, 25 Jun 2021 18:01:31 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:39fe96a2-51b0-45a7-ad44-e31aabd1ef48</guid><dc:creator>ansarirahim</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;I m trying to compile inside the Beaglebone black but getting following error: Pls suggest me&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;root@beaglebone:~/exploringBB/chp15/pru/blinkLED# make&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;************************************************************&lt;/p&gt;&lt;p&gt;Building project: blinkLED&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Building file: blinkLED.c&lt;/p&gt;&lt;p&gt;Invoking: PRU Compiler&lt;/p&gt;&lt;p&gt;/usr/bin/clpru --include_path=/usr/lib/ti/pru-software-support-package/include --include_path=/usr/lib/ti/pru-software-support-package/include --include_path=/usr/lib/ti/pru-software-support-package/include/am335x -v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_directory=gen --pp_directory=gen -ppd -ppa -fe gen/blinkLED.object blinkLED.c&lt;/p&gt;&lt;p&gt;&amp;quot;blinkLED.c&amp;quot;, line 37: fatal error #1965: cannot open source file &amp;quot;stdint.h&amp;quot;&lt;/p&gt;&lt;p&gt;1 catastrophic error detected in the compilation of &amp;quot;blinkLED.c&amp;quot;.&lt;/p&gt;&lt;p&gt;Compilation terminated.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;gt;&amp;gt; Compilation failure&lt;/p&gt;&lt;p&gt;make: *** [Makefile:80: gen/blinkLED.object] Error 1&lt;/p&gt;&lt;p&gt;root@beaglebone:~/exploringBB/chp15/pru/blinkLED#&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7064&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Coding for the BeagleBone PRU with C in 2019</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/coding-for-the-beaglebone-pru-with-c-in-2019</link><pubDate>Wed, 23 Jun 2021 19:14:49 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:39fe96a2-51b0-45a7-ad44-e31aabd1ef48</guid><dc:creator>ansarirahim</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Anydbody in our community has done project for pulses capture.&lt;/p&gt;&lt;p&gt;Where one pulse is reference and other pulses will be in that reference.&lt;/p&gt;&lt;p&gt;I m using OCXO 10MHz for reference..all under test pulses will be counted in ocxo reference.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Pls suggest //if anybody has done through PRU..&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7064&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Coding for the BeagleBone PRU with C in 2019</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/coding-for-the-beaglebone-pru-with-c-in-2019</link><pubDate>Wed, 23 Jun 2021 10:37:38 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:39fe96a2-51b0-45a7-ad44-e31aabd1ef48</guid><dc:creator>ansarirahim</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Alhamdulillah..Thanks a&amp;nbsp; lot u have saved my years of struggle to get it work done the PRU is working now for kernel above 3.8....&lt;/p&gt;&lt;p&gt;i have purchased the book -edition2 of Darek Molley...&lt;/p&gt;&lt;p&gt;Pls share such more exciting things on PRU like pulse counting with high resolution timers and compare with other pulse counts..&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7064&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Coding for the BeagleBone PRU with C in 2019</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/coding-for-the-beaglebone-pru-with-c-in-2019</link><pubDate>Thu, 17 Oct 2019 14:46:33 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:39fe96a2-51b0-45a7-ad44-e31aabd1ef48</guid><dc:creator>jasonsait</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi David.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks for the example.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;m teaching a class using the BB, but we can&amp;#39;t get the square wave to work.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Is there a particular kernel image you&amp;#39;re using?&amp;nbsp; Any tips you could provide would be great.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Jason&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7064&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Coding for the BeagleBone PRU with C in 2019</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/coding-for-the-beaglebone-pru-with-c-in-2019</link><pubDate>Fri, 31 May 2019 13:59:05 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:39fe96a2-51b0-45a7-ad44-e31aabd1ef48</guid><dc:creator>myboo</dc:creator><slash:comments>3</slash:comments><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I have followed your step until &lt;/p&gt;&lt;ol start="1"&gt;&lt;li&gt;&lt;span style="font-weight:inherit;font-style:inherit;"&gt;cd /sys/class/remoteproc/remoteproc1&amp;nbsp; &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-weight:inherit;font-style:inherit;"&gt;echo &amp;#39;pru_blinky&amp;#39; &amp;gt; firmware&amp;nbsp; &lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;span style="font-weight:inherit;font-style:inherit;"&gt;but why I can&amp;#39;t run command &amp;quot;&lt;span&gt;echo &amp;#39;start&amp;#39; &amp;gt; state&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight:inherit;font-style:inherit;"&gt;it return &amp;quot;-bash: echo: write error: Invalid argument&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight:inherit;font-style:inherit;"&gt;Tell me why ,Thank you.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7064&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Coding for the BeagleBone PRU with C in 2019</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/coding-for-the-beaglebone-pru-with-c-in-2019</link><pubDate>Fri, 17 May 2019 16:24:25 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:39fe96a2-51b0-45a7-ad44-e31aabd1ef48</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Yay!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Following your instructions - and using the PRU LED0 project for the PRU Cape - I managed to get the red led on the cape to light on and off via the linux command line.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/585x438/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-39fe96a2-51b0-45a7-ad44-e31aabd1ef48/contentimage_5F00_204922.png:585:438]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7064&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Coding for the BeagleBone PRU with C in 2019</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/coding-for-the-beaglebone-pru-with-c-in-2019</link><pubDate>Fri, 17 May 2019 14:30:16 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:39fe96a2-51b0-45a7-ad44-e31aabd1ef48</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;small correction: the protocol is not in the git clone URL:&lt;/p&gt;&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3ef06e6b-9b7d-4651-b12d-db8be7f5e991:type=text&amp;amp;text=git+clone+git%3A%2F%2Fgit.ti.com%2Fpru-software-support-package%2Fpru-software-support-package.git]&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7064&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Coding for the BeagleBone PRU with C in 2019</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/coding-for-the-beaglebone-pru-with-c-in-2019</link><pubDate>Wed, 15 May 2019 20:05:14 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:39fe96a2-51b0-45a7-ad44-e31aabd1ef48</guid><dc:creator>Fred27</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;It looks like debugging the PRU in CCS is possible too! &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-39fe96a2-51b0-45a7-ad44-e31aabd1ef48/6545.contentimage_5F00_938.png:16:16]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;No guide (even TI&amp;#39;s labs) worked as-is. I had to mash together lots of info from lots of different sources. Right now I don&amp;#39;t know what was essential and what wasn&amp;#39;t. I don&amp;#39;t know whether erasing Linux from the eMMC was necessary. Maybe the mysterious initialization javascript (yes, really) was the final piece of the puzzle. I don&amp;#39;t know whether I needed to spend £100 on my new standalone XDS110 or whether the Launchpad one would have done.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;ll write it up when I have it a little clearer, but here&amp;#39;s proof that it works:&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/620x484/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-39fe96a2-51b0-45a7-ad44-e31aabd1ef48/4401.contentimage_5F00_204919.png:620:484]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7064&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Coding for the BeagleBone PRU with C in 2019</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/coding-for-the-beaglebone-pru-with-c-in-2019</link><pubDate>Tue, 14 May 2019 22:58:37 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:39fe96a2-51b0-45a7-ad44-e31aabd1ef48</guid><dc:creator>shabaz</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi Fred,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks for this very useful guide. It looks easy to follow, and full of awesome information. I&amp;#39;d no idea that there was this new way of configuring pin use, without writing to some device path directly, or messing with device tree fragments. Also launching PRU code has improved too.&lt;/p&gt;&lt;p&gt;It&amp;#39;s great to finally have a clearly-written up-to-date step-by-step guide on the PRU.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7064&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>