Skip to content

ken2228/PRUSS-C

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

196 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PRUSS-C

C Library for the BeagleBone (Black) Programmable Realtime Unit SubSystem

###Repo Explanation ######This fork is a result of wanting to use StarterWare capabilities for a project, which the BeaglePilot team has done with their blinkled.c test. I have attempted to change their example to set a GPIO pin high and low, instead of blinking the user LEDs. I have written a device tree (found in /PRUSS-C/overlay) that should set up P9.12 to be an output for my program, but so far I am not getting any output to the pin. The blinkled.c program compiles and runs fine, but no output to the pins is seen.

###Issues to consider before running: Issue #1: I am using arm-linux-gnueabihf- for my gcc and ar tools, so you will want to check which compiler you have downloaded and make sure you have that correctly in all the Makefiles needed

Issue #2:
    The paths in the Makefiles are all assuming you have cloned this git repo into the /root directory. If that is not the case, you will need to change all the paths in the Makefiles from /root/PRUSS-C/etc to /root/path/to/PRUSS-C/etc

Issue #3:
    Make sure you have the following lines written in the memory section of /usr/share/ti/cgt-pru/lib/lnk.cmd
    
    MEMORY
    {
    PAGE 2:
    MEM : org = 0x00026000 len = 0x00002000 CREGISTER=4
    } 
    
Issue #4:
    In the /root/PRUSS-C/PRUSS_LIB/example/Makefile you need to make sure the CGTDIR variable is set to the path where you have your libc.a saved

###Compiling and Executing example GPIO program: #####The following commands should compile everything and start the program running

git clone https://github.com/BestFriendofDoug/PRUSS-C.git
cd /root/PRUSS-C
chmod +x run.sh
./run.sh
cd am335x_pru_package/pru_sw/example_apps/bin
./blinkled

About

PRU C compiler test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 88.0%
  • C++ 10.1%
  • OpenEdge ABL 1.3%
  • Python 0.2%
  • Makefile 0.2%
  • Assembly 0.1%
  • Other 0.1%