element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • 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
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • 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
  • Settings
BeagleBoard
  • Products
  • Dev Tools
  • Single-Board Computers
  • BeagleBoard
  • More
  • Cancel
BeagleBoard
Blog How Do You Get C onto a BeagleBone AI?
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join BeagleBoard to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: dubbie
  • Date Created: 13 Nov 2019 9:05 AM Date Created
  • Views 4119 views
  • Likes 4 likes
  • Comments 17 comments
  • c on the beaglebone ai
Related
Recommended

How Do You Get C onto a BeagleBone AI?

dubbie
dubbie
13 Nov 2019

Could anyone give me a quick pointer as to where to look for information on how to transfer a C programme to the BeagleBone AI and then compile it and run it?

 

I have a C programme compiled in Microsoft that I wish to transfer to a BeagleBone AI. I have had a quick look online and Element14 and so far I have not found any information about this. I am not a Linux user so this may be easy and obvious but when you don't know something it always seems hard. The C programme implements an Artificial Neural Network and I want to use it with my LDR Camera as part of the Vision Thing Project14. Time is running out.

 

Dubbie

  • Sign in to reply

Top Comments

  • Sean_Miller
    Sean_Miller over 6 years ago +4
    BeagleBone uses a development system called Cloud9. You access it after the BBAI boots up by typing http://youripaddress in a Browser on your network. The address could be a different depending how you…
  • skywalker1211
    skywalker1211 over 6 years ago +3
    copy source file and header to the and run gcc to compile it. example: main.c and main.h gcc main.c -o main run by ./main
  • Jan Cumps
    Jan Cumps over 6 years ago +3
    If you want to develop and compile on your PC and then run/debug on the BB(AI): BeagleBone: Build and Debug a Linux C++ Program with Code Composer Studio
  • dubbie
    dubbie over 6 years ago in reply to Sean_Miller

    I tried Java once when it first came out. I wanted an internet camera as well to see when the coffee was ready. It was supposed to be the answer to all my problems with controlling stuff. Java and I just didn't get on. All I wanted to do was turn a LED on and off. Even when I was given a working programme I still couldn't get it work. I'll stick with C unless Python is any good.

     

    Dubbie

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Sean_Miller
    Sean_Miller over 6 years ago in reply to dubbie

    I remember learning C back around 95 with a Sams Teach Yourself in 21 days book.  It was such a major shift for me from BASIC.  I remember absolutely struggling to learn it.  Once JAVA came out and it handled strings and memory so much better, I thought - I'm glad I'll never need C again.

     

    25 years later, the microcontroller begins to roam the earth and now I program in C more than anything.  Funny how that can happen.

     

    -Sean

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dubbie
    dubbie over 6 years ago in reply to Jan Cumps

    Jan,

     

    Debug in real-time. Is that a real thing? I think the only time I tried debugging in real time was with an 8086 emulator with associated logic analyser and it was so long ago I think dinosaurs stilled roamed the earth. I have tended to rely on pure brain power and thinking when debugging which stems from when I was studying and it took 30 minutes or more to make a change to a programme. You just had to work out what the problem was before making an edit, rather than the try it and see what happens approach - when editing a programme and re-running it takes only a few seconds. Still having said that I spent hours yesterday trying to work out why a C programme wasn't compiling, deleting all comments, deleting all unnecessary code and eventually resorted to commenting out statement by statement until  I realised I had accidentally deleted the last close bracket ( } ) from the main loop. C error messages can be so unhelpful at times.

     

    Dubbie

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Sean_Miller
    Sean_Miller over 6 years ago in reply to dubbie

    It intimidated me at first.  After a bit I quickly realized the efficiency of it, particularly for running the examples.  It also sustains your session between visits.  So, Cloud9 has become the only way I develop with the BBAI.

     

    See ya,

    Sean

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 6 years ago in reply to dubbie

    dubbie  wrote:

     

    I think this approach would have to be a last resort for me, as it looks fairly complicated.

     

    Dubbie

    .... but you can debug image real time

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
<>
element14 Community

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 © 2026 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.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube