PRUCookbook
PRUCookbook copied to clipboard
How to add library in clpru compiler.
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.
@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.