{"id":19297308,"url":"https://github.com/BeaglePilot/PRUSS-C","last_synced_at":"2025-04-22T09:30:37.244Z","repository":{"id":14529129,"uuid":"17243607","full_name":"BeaglePilot/PRUSS-C","owner":"BeaglePilot","description":"PRU C compiler test","archived":false,"fork":false,"pushed_at":"2014-04-05T16:46:55.000Z","size":9288,"stargazers_count":24,"open_issues_count":2,"forks_count":50,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-09T23:02:28.173Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BeaglePilot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-27T09:31:57.000Z","updated_at":"2024-06-12T09:00:32.000Z","dependencies_parsed_at":"2022-09-23T20:52:16.324Z","dependency_job_id":null,"html_url":"https://github.com/BeaglePilot/PRUSS-C","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeaglePilot%2FPRUSS-C","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeaglePilot%2FPRUSS-C/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeaglePilot%2FPRUSS-C/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeaglePilot%2FPRUSS-C/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BeaglePilot","download_url":"https://codeload.github.com/BeaglePilot/PRUSS-C/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250214960,"owners_count":21393705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T23:01:51.125Z","updated_at":"2025-04-22T09:30:35.056Z","avatar_url":"https://github.com/BeaglePilot.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"PRUSS-C\n=======\n\nC Library for the BeagleBone (Black) Programmable Realtime Unit SubSystem\n###Compiling App Loader\n    git clone https://github.com/BeaglePilot/PRUSS-C.git\n    cd PRUSS-C/am335x_pru_package/ pru_sw/app_loader/interface\n    make\n    cd ../lib\n    scp libprussdrv.so root@beaglebone.local:/usr/local/lib\n    \n###Basic Command for Compilation\nYou can find an example blinkled PRU code @ `PRUSS-C/am335x_pru_package/pru_sw/example_apps/blinkled/blinkled_pru.c`\n####for 64-bit systems only:    \n    sudo apt-get install ia32-libs-multiarch\n####else for 32-bit systems start from here \n######for x86_64/i686\n    export PRU_C_DIR=\"/opt/ti/PRUCGT1.0.0B1/include;/opt/ti/PRUCGT1.0.0B1/lib\"\n    export PATH=\"/opt/ti/PRUCGT1.0.0B1/bin;/opt/ti/PRUCGT1.0.0B1/;/opt/ti/PRUCGT1.0.0B1/example\":$PATH\n    clpru --silicon_version=3 -o1 blinkled_pru.c -z AM3359_PRU.cmd -o PRU_tests.out -m PRU_tests.map\n    hexpru bin.cmd PRU_tests.out\nThis generates 2 files: data.bin (containing the data sections) and text.bin (containing the .text sections).\n######for arm systems\n    export PRU_C_DIR=\"/path/to/ARMLinuxA8/include;/path/to/ARMLinuxA8/lib\"\n    export PATH=\"/path/to/ARMLinuxA8/bin:/path/to/ARMLinuxA8/:/path/to/ARMLinuxA8/example\":$PATH\n    clpru --silicon_version=3 -o1 blinkled_pru.c -z /path/to/ARMLinuxA8/AM3359_PRU.cmd -o PRU_tests.out -m PRU_tests.map\n    hexpru /path/to/ARMLinuxA8/bin.cmd PRU_tests.out\nThis generates 2 files: `data.bin` (containing the data sections) and `text.bin` (containing the instruction sections).\n\n###Compiling PRU source code with StarterWare driver library\n\nExamples included inside the PRUSS_LIB :- blinkled\n\n    cd PRUSS_C/PRUSS_LIB/\n    export PRU_BASE_PATH=path/to/PRUSS_LIB\n    export PATH=\"/path/to/ARMLinuxA8/bin:/path/to/ARMLinuxA8/\":$PATH\n    cp path/to/ARMLinuxA8 path/to/PRUSS_LIB\n    cd example\n    make\n\nThis generates 2 files: `build/data.bin` (containing the data sections) and `build/text.bin` (containing the instruction sections).\n\n###Compiling your BBB main app\n#####Example blinkled:\n    cd PRUSS-C/am335x_pru_package/pru_sw/example_apps/\n    make\n    cd bin/\n    scp blinkled root@beaglebone.local:~/\n###Executing your Application on BBB\nCopy data.bin and text.bin to the same folder as blinkled application.\n\nNote:follow the steps in the shown order\n\n    export LD_LIBRARY_PATH=/usr/local/lib\n    modprobe uio_pruss\n\nCreate BB-PRU-00A0.dts with contents as shown @ http://hipstercircuits.com/category/pru/ and load the cape using capemgr.\n\nand finally\n    \n    ./blinkled\n\nyou should see two LEDs blinking\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBeaglePilot%2FPRUSS-C","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBeaglePilot%2FPRUSS-C","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBeaglePilot%2FPRUSS-C/lists"}