element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
BeagleBoard
  • Products
  • Dev Tools
  • Single-Board Computers
  • BeagleBoard
  • More
  • Cancel
BeagleBoard
Blog BBB - PRU C compiler
  • Blog
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
BeagleBoard requires membership for participation - click to join
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
Author: shabaz
Date Created: 30 Apr 2014 9:36 PM
Views: 709
Likes: 5
Comments: 13
  • beaglebone_black
  • sbc
  • beagleboneblack
  • bbb
  • BeagleBone
  • texas_instructments
  • ti
Related
Recommended

BBB - PRU C compiler

shabaz
shabaz
30 Apr 2014

Nice bit of information at this TI URL:

(My underlining below):

 

PRU Development

The Programmable Real-time Unit (PRU) is a low-latency microcontroller sub-system comprised of two or more 32-bit RISC processors, local instruction and data RAM, local peripherals and an interrupt controller. The PRU is efficient at handing events that have tight real-time constraints. The PRU is also known as the Industrial Communications Sub-System since it is used to enable industrial protocols such as EtherCATÂRegistered, EtherNet/IPâ„¢, PROFINET, PROFIBUS, POWERLINK, SERCOS III, and others. Each 32-bit processor runs at 200MHz, enabling 5ns instruction cycle. Local peripherals within the PRU sub-system include UART, eCAP, MII_RT, MDIO and IEP. The PRUâ€Tms fast input and output pins enable detection and reaction to I/O events within two PRU cycles.

Code Composer Studio provides a C compiler enabling users to add differentiation to their products.

 

(Downloading now! )

 

Anonymous

Top Comments

  • shabaz
    shabaz over 8 years ago in reply to Former Member +1

    Hi Carlo,

     

    I did try the compiler, it worked well! I just did a simple loop, set it to unoptimized and visually inspected the assembler output. I have not yet tried to execute the code though.

    As you say…

  • Former Member
    Former Member over 6 years ago in reply to Former Member +1

    In case anyone comes across this question, I noticed that while installing the Code Composer Studio, at least the Sitara 32-bit ARM Processors compilers should be selected, since the BeagleBone SoC is…

  • ansarirahim
    ansarirahim 10 months ago

    Is there any need to install code composer studio in beagleboneblack..as i m getting error in beaglebone when i m trying to executing following command to build:

     

    ../blinkLED# make

     

     

    ************************************************************

    Building project: blinkLED

     

     

    Building file: blinkLED.c

    Invoking: PRU Compiler

    /usr/bin/clpru --include_path=/usr/lib/ti/pru-software-support-package/include --include_path=/usr/lib/ti/pru-software-support-package/include --include_path=/usr/lib/ti/pru-software-support-package/include/am335x -v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_directory=gen --pp_directory=gen -ppd -ppa -fe gen/blinkLED.object blinkLED.c

    "blinkLED.c", line 37: fatal error #1965: cannot open source file "stdint.h"

    1 catastrophic error detected in the compilation of "blinkLED.c".

    Compilation terminated.

     

     

    >> Compilation failure

    make: *** [Makefile:80: gen/blinkLED.object] Error 1

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • Former Member
    Former Member over 6 years ago in reply to Former Member

    In case anyone comes across this question, I noticed that while installing the Code Composer Studio, at least the Sitara 32-bit ARM Processors compilers should be selected, since the BeagleBone SoC is from this family of processors.

    • Cancel
    • Up +1 Down
    • Reply
    • More
    • Cancel
  • shabaz
    shabaz over 7 years ago in reply to verminsky

    Hi Verminsky,

     

    I've had no time to dig further unfortunately, but I noticed Fabien has written up steps on how to use the C compiler.

    Hopefully this will help.

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • verminsky
    verminsky over 7 years ago in reply to shabaz

    I still have had no success generating a working, single xxx.bin file from the PRU compiler, that can be loaded and executed using the LinuxApplicationLOader from the am335xxxPRU master files on github.  I downloaded CCSv6 and from what I can tell, CCS expects one to use an outboard JTAG debugging tool and CCS to download to separate .text and .data .bin files into the actual PRU memory.

     

    Admittedly, my lack of knowledge is preventing me from truly understanding some of this, but in the past, I have been successful using the AM335xxx Github Linux Appliction loader and PASM to get a simple gpio toggling app going.

     

    Have ou had any time to delve into the ti compiler any further?    Thanks

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • shabaz
    shabaz over 7 years ago in reply to verminsky

    Hi Verminsky,

     

    Unfortunately I've not had a chance to do this, but being a bit familiar with the PRU assembler instructions, it did look like the compiler was generating valid assembler (example assembler listing is in the comments above), so I'm fairly sure it should work. I'll post back when I get a chance to try this out, but it may not be for a week or two : (

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
>
Element14

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2022 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube