Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add library in clpru compiler. #19

Open
rajmehta28599 opened this issue Aug 23, 2021 · 1 comment
Open

How to add library in clpru compiler. #19

rajmehta28599 opened this issue Aug 23, 2021 · 1 comment

Comments

@rajmehta28599
Copy link

Aim: run GCC with Clpru in BeagleBone Black.

Info:
I have BeagleBone Black and I run ws2812B LED strip with PRU. and merge/integrate other data with that to control the led pattern.

so I need help in change the compilation method or learn to integrate it into clpru.

Main code : led.pru0.c
as same : https://beagleboard.org/static/prucookbook/#blocks_neo1

second code : Data_fetch.c
This code use -l:librobotcontrol.so.1 library with GCC compiler to compile Data_fetch.c script. and have one method which provides the number of LEDs (0 to 90), this varies as per battery voltage.

Issue:
So the issue is: The main code compiler is clpru and the second code use GCC compiler for execution. So how do I communicate both codes? or shared resources.

Thank you I will appreciate your response.

@MarkAYoder
Copy link
Owner

MarkAYoder commented Jan 2, 2022

@rajmehta28599 I think the easiest approach may be to use the neo4.pru0.c code. It uses /dev/rpmsd_pru to control the LEDs. You could then modify Data_fetch.c to write to /dev/rpmsg_pru to control the desired LEDs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants