<?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>Debugging the BeagleBone PRU in CCS</title><link>/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/debugging-the-beaglebone-pru-in-ccs</link><description>Debugging your PRU C codeRecently I decided to turn my attention to the fairly unique Programmable Realtime Units on the BeagleBone&amp;#39;s TI Sitara processor. My earlier blog post covered Coding for the BeagleBone PRU with C in 2019 and hopefully showed </description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Debugging the BeagleBone PRU in CCS</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/debugging-the-beaglebone-pru-in-ccs</link><pubDate>Wed, 18 Aug 2021 12:11:51 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3e602f0d-339f-407c-b23a-75671ee2728b</guid><dc:creator>Fred27</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I added &lt;strong&gt;bb_pru_startup.js&lt;/strong&gt; to the body of this post so it win&amp;#39;t get lost again. (Why is pasting in code always to difficult!)&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7098&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Debugging the BeagleBone PRU in CCS</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/debugging-the-beaglebone-pru-in-ccs</link><pubDate>Fri, 13 Aug 2021 21:45:06 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3e602f0d-339f-407c-b23a-75671ee2728b</guid><dc:creator>joshua1609</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Could you share a copy of the startup file &lt;span&gt;bbb_pru_startup.js.&amp;nbsp; Ive tried both links but in 2021 they are both dead.&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7098&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Debugging the BeagleBone PRU in CCS</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/debugging-the-beaglebone-pru-in-ccs</link><pubDate>Wed, 21 Aug 2019 16:43:29 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3e602f0d-339f-407c-b23a-75671ee2728b</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>1</slash:comments><description>Prevent Linux from booting&lt;blockquote class="jive-quote"&gt;&lt;p&gt;You need to make sure the Linux isn&amp;#39;t currently running on the BeagleBone. Unfortunately I don&amp;#39;t think you can debug the PRU whilst the Sitara&amp;#39;s A8 core is busy running Linux. Obviously this means you can&amp;#39;t debug any interaction between your Linux code and the PRU. Maybe it&amp;#39;s possible, but I&amp;#39;ve not heard of it. &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;m going to try the without-linux approach first. It&amp;#39;ll be a little messy because I&amp;#39;m currently booting and running from the eMMC.&lt;/p&gt;&lt;p&gt;Then I&amp;#39;ll try to find out why it should be without Linux - because I want to debug in a situation where data is shared from OS to PRU.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7098&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Debugging the BeagleBone PRU in CCS</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/debugging-the-beaglebone-pru-in-ccs</link><pubDate>Mon, 08 Jul 2019 15:50:28 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3e602f0d-339f-407c-b23a-75671ee2728b</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;I just bought the same debug probe as you - it arrived today. I&amp;#39;m going to try this.&lt;/p&gt;&lt;p&gt;I know that the probe is OK - it works on a TI CC1310, TMS570LS04 (both tested on LaunchPads) and a CC2650 (the SensorTag). I&amp;#39;ll now test the setup you describe above.&lt;/p&gt;&lt;p&gt;(edit: you named it XDS100 in the blog post. The hyperlink correctly points to XDS110)&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7098&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Debugging the BeagleBone PRU in CCS</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/debugging-the-beaglebone-pru-in-ccs</link><pubDate>Sun, 26 May 2019 10:09:14 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3e602f0d-339f-407c-b23a-75671ee2728b</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;What worries me a bit is that TI is decommisioning the wiki that contains the .js debug init script.&lt;/p&gt;&lt;p&gt;Although it’s a bit unorganised, the wiki is full with info you can’t find anywhere else. For the BB, but also for the Hercules controller family...&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7098&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Debugging the BeagleBone PRU in CCS</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/debugging-the-beaglebone-pru-in-ccs</link><pubDate>Sat, 18 May 2019 23:07:22 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3e602f0d-339f-407c-b23a-75671ee2728b</guid><dc:creator>shabaz</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Another awesome post, this is very helpful! I think I have that connector so I will be soldering it onto my BBB soon too.&lt;/p&gt;&lt;p&gt;As I understand, there is some stuff possible from Linux, in terms of stopping and single-stepping, but whether anyone has written a recent debugger, I&amp;#39;ve no idea. There was something old but I couldn&amp;#39;t get it to run a few years ago.&lt;/p&gt;&lt;p&gt;But I think with the method you describe, the workflow could be to code and test the PRU, and then run it with Linux later, with the code added to send/receive into a Linux process any necessary data. This way seems to be the best of both worlds, with a decent graphical CCS debugger, and rather than try to debug both PRU side and Linux application side at the same time.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7098&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>