Comments (9)
@daschachter do a git pull and you should see my changes.
from prucookbook.
Darren: Thanks for catching this. I like the solution of switching to P2_05. It turns out this example goes through the GPIO not the PRU's R30 register so P2_05 can be used.
The bigger problem is config-pin no longer works with 'in' and 'out'. I'm running my own config-pin that looks for 'in' and 'out' and handles them correctly. You can find it in PRUCookbook/docs/common/config-pin.sh.
I'm not sure the cleanest way to fix the config-pin problem.
from prucookbook.
@MarkAYoder I see what you mean regarding this example using GPIO rather than R30. I agree that switching to P2_05 makes the most sense, and I will work on updating the code.
Regarding config-pin
not working with 'in' and 'out,' I ran into the same problem. As a temporary fix, I had been using an older version of config-pin
(found here). I was discussing this issue with some community members yesterday evening on the IRC chat and it seems like the older config-pin
shell script I linked to has been replaced by a newer C version. While I have not been able to find the source for this C version, it does not have support for 'in'/'out' as you mentioned (at least not yet).
I'll try to think of ways to streamline the config-pin
process. In the meantime, I will use the workaround script you mentioned in PRUCookbook/docs/common/config-pin.sh.
from prucookbook.
Thank you @MarkAYoder, the updated config-pin
is working on my end. Unfortunately, I am still running into issues with gpio.pru0.c
-- I cannot get an LED connected to P2_05 to blink. I have tried accessing this GPIO through the terminal (sysfs) and I'm able to manually toggle the LED. I have also tried changing gpio.pru0.c
to use pin P2_02 (GPIO1[27]), which, like P2_05, is not connected to R30. Strangely, this works (LED blinks when connected to P2_02). I am still not sure if this is a problem on my end, but I'll continue looking into this.
from prucookbook.
@daschachter this is odd. When hooked to P2_05 you can blink the LED, but not via the pru. And you can toggle an LED attached to P2_02 using the pru. But you can't toggle an LED attached to P2_05 via the pru. Seems like you've covered all the bases.
Are you sure when toggling P2_05 with the pru is it configured at 'out'? (It should be if you can toggle it via /sys/.)
Maybe the pin is burned out.
from prucookbook.
@MarkAYoder I've just confirmed that P2_05 is configured as 'out' -- I agree, this is very strange. The pin being burnt out is definitely a possibility. I'm not sure if you have a PocketBeagle on hand, but I'll try to reach out to someone with a PocketBeagle and see if they can confirm this behavior.
from prucookbook.
@daschachter were you ever able to get this to work?
from prucookbook.
@MarkAYoder Unfortunately, I have not been able to get P2_05 working with the PRU. I suspect something has been burnt out on my board, like you mentioned previously. However, I'm currently working on a fix for config-pin
(in the original source file) that should eliminate the issue with in/out modes. I'm hoping to have this fix done by the end of the week.
from prucookbook.
The fix for config-pin
is currently under review here: beagleboard/bb.org-overlays#187 .
from prucookbook.
Related Issues (16)
- Issues with the book section 4.4 UART HOT 1
- Typos in Table 4 of PRUCookbook/docs/05blocks/blocks.adoc HOT 1
- PRU Cookbook for BB AI? HOT 4
- Multiple links broken HOT 1
- How to compile and execute code without make.
- How to add library in clpru compiler. HOT 1
- neo4.pru1.c HOT 3
- resource_table_empty.h no more in pru-software-support-package HOT 1
- Suggestion: Add clarification on PRU_UART selection
- make fails for me in pru example HOT 2
- Starterware HOT 2
- Errors in Makefile of "Blinking a LED" example HOT 5
- python rendering issue HOT 1
- Can bbblue do it uart example? HOT 1
- rpmsg issue on BBB running debian 9.5 IoT HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prucookbook.