Git Product home page Git Product logo

Comments (9)

MarkAYoder avatar MarkAYoder commented on July 23, 2024 1

@daschachter do a git pull and you should see my changes.

from prucookbook.

MarkAYoder avatar MarkAYoder commented on July 23, 2024

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.

daschachter avatar daschachter commented on July 23, 2024

@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.

daschachter avatar daschachter commented on July 23, 2024

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.

MarkAYoder avatar MarkAYoder commented on July 23, 2024

@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.

daschachter avatar daschachter commented on July 23, 2024

@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.

MarkAYoder avatar MarkAYoder commented on July 23, 2024

@daschachter were you ever able to get this to work?

from prucookbook.

daschachter avatar daschachter commented on July 23, 2024

@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.

daschachter avatar daschachter commented on July 23, 2024

The fix for config-pin is currently under review here: beagleboard/bb.org-overlays#187 .

from prucookbook.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.