NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

PRU Cape: Building Demos

From Texas Instruments Wiki
Jump to: navigation, search

Introduction[edit]

The PRU Cape is a test, development, and evaluation module system that enables developers to write software and develop hardware around the PRU subsystem. This wiki article outline how to rebuild the Demo software available for the PRU Cape.

For more details about the PRU Cape and the Demo software, visit:



Prerequisites[edit]

The PRU Cape Demo Software is available in the PRU Software Support Package hosted on git.ti.com. To download this package, select the "Source Tree" button from the PRU Software Support Package webpage and then click "Download master as tar.gz." In Windows, a program such as 7-zip can be used to open the downloaded file and extract the software package contents.

To EDIT or REBUILD the PRU Cape demos, the following software is required:



Rebuilding the Demo Source Code[edit]

NOTE: This section uses the notation $PRU_SW_PATH to reference the installed location of the downloaded PRU Software Support Package.


1. Launch CCSv6 and select the default Workspace
2. Load the PRU_Demo and Firmware projects' into CCS
a. Select Project->Import CCS Projects...
b. Browse to the pru_cape directory in the PRU Software Package sources (i.e. $PRU_SW_PATH/pru_cape)
c. Select all projects that appear (i.e. PRU_Demo, PRU_LED0, PRU_LED1, etc)
d. Select Finish
3. The projects should now be visible in the Project Explorer. Don't see the Project Explorer? Select View->Project Explorer
4. Configure PRU_Demo project Build Configurations as "Release"
a. Right click on the PRU_Demo project
b. Select "Build Configurations -> Set Active -> 2 Release"
5. Link the PRU_Demo project to StarterWare
a. Right click on the PRU_Demo project
b. Select Properties
c. Select CCS Build->Environment
d. Edit (or add) the variable named "STARTERWARE_ROOT"
e. Update the Value of this variable to the StarterWare directory on your computer (i.e. C:/TI/AM335X_StarterWare_02_00_01_01)
f. Select OK and OK
6. Update PRU_Demo project Link Order
a. Right click on the PRU_Demo project
b. Select Properties
c. Select CCS Build->Link Order
d. Select Add... icon
e. Select pru.c and pru_cape_demo.c files
f. Select OK and OK
7. (Optional) To create an SD bootable application image, add a Post-build step
Note this step must be performed in Windows. If this step is skipped, a .out file will still be created, which can be loaded to and executed on the BeagleBone Black through CCS over JTAG.
For more details about the TI Image Tool used in this step, refer to the AM335x StarterWare wiki here
a. Right click on the PRU_Demo project
b. Select Properties
c. Select CCS Build->Steps
d. Add the following text under Post-build steps:
"${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${ProjName}.out" "${ProjName}.bin" "${CG_TOOL_ROOT}/bin/ofd470.exe" "${CG_TOOL_ROOT}/bin/hex470.exe" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe" & "${STARTERWARE_ROOT}/tools/ti_image/tiimage.exe" "0x80000000" "NONE" "${ProjName}.bin" "${ProjName}_ti.bin"
e. Select OK
8. Build the PRU_Demo and PRU Firmware projects
a. Select the PRU_Demo project
b. Select Project->Build Project
c. Note the firmware projects are linked to the PRU_Demo project. Building the PRU_Demo project should cause the other projects to build.
d. Building the PRU_Demo and PRU_Firmware projects should create PRU_Demo.out (located in the $PRU_SW_PATH/pru_cape/pru_demo/Release directory). This .out file can be loaded and run on the CortexA8 core through CCS over JTAG.
e. If creating the optional SD bootable application image (Step 6 above), the Post-Build step should create PRU_Demo_ti.bin (located in the $PRU_SW_PATH/pru_cape/pru_demo/Release directory). Rename PRU_Demo_ti.bin to app and follow the steps on the PRU Cape Getting Started Guide to prepare the SD Card.




Running the Demos[edit]

Refer to the PRU Cape Getting Started Guide for details about running the demos.



E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article PRU Cape: Building Demos here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article PRU Cape: Building Demos here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article PRU Cape: Building Demos here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article PRU Cape: Building Demos here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article PRU Cape: Building Demos here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article PRU Cape: Building Demos here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article PRU Cape: Building Demos here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article PRU Cape: Building Demos here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article PRU Cape: Building Demos here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity