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
    • 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
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • 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
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs BeagleBone - First Little Checks
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 31 Jul 2016 10:05 AM Date Created
  • Views 514 views
  • Likes 3 likes
  • Comments 6 comments
  • debian
  • code composer studio
  • cortex-a8
  • cross_compile
  • cortex
  • BeagleBone
  • arm
  • beaglebone green
  • linux
Related
Recommended

BeagleBone - First Little Checks

Jan Cumps
Jan Cumps
31 Jul 2016

I have a BeagleBone Green since a few days, thanks to Workshopshed*.

My goal is to use it to up my knowledge on linux powered embedded systems.

image

I'd like to become better on cross-compilation and the tool chain. Get a deeper understanding of dealing with the time and energy budget on OS-based systems. And hopefully also pick up real-time coding skills.

A parallel thing I'd like to do is us c++ as much as possible. Just because.

 

*proof that good deals can be made between the UK and the EU image.

 

Unbox and Plug In

Getting the BB up isn't difficult. It worked straight away for me.

I followed the instructions on the board's getting started page.

Once I plugged in the board and installed the drivers, I could surf to it with my browser (virtual ethernet over usb).

 

I then checked how I could conect to the device.

I've first used PuTTY over serial USB communication. Worked perfectly.

image

Then I used PuTTY with SSH over the virtual ethernet. Worked perfectly too.

image

As last, I tried out secure file transfer via WinSCP. Also worked.

image

 

This shows that i'm able to access the board and get to OS and file system.

I also checked a few of the Bone Script examples. They worked.

image

Basic things all checked. Now it's time to...

 

Install Latest Debian

I went to the telephone shop here to purchase a new microSD card (if you have kids, you'll know why I had to buy a fresh one).

I downloaded the latest debian distro for this board and unzipped it.

Then installed Win32DiskImager and followed instructions.

Unplugged the BB, inserted the SD card, and plugged it in again with the user (boot) button pressed.

Again, this worked as documented.

 

BeagleBoard.org Debian Image 2016-05-13

 

 

Build a First c++ Example

Partly success there.

 

I've compiled a Hello World! example on the board and executed that. That worked flawlessly.

 

image

 

I also did two attempts for cross-compilation from CCS. Both failed.

I first tried to use the BeagleBone tool chain (you get that when installing the Sitara module) to compile and build a program.

That resulted in a memory overflow for my Hello World.

I didn't check any further (except a brief look in the linker instructions and the map file).

This is a first try-out, so I haven't read-up yet.

image

Then I tried a second attempt using the generic Cortex A8 support in CCS. That project created a binary.

After loading it to the BB via WinSCP and making it executable, it got kindly killed by the OS.

Again, note that I didn't do anything to properly check if I made a OS-loadable binary. Most likely not image.

 

C++ to Hardware

That went ok. I used a c++ example to flash user LED 0 10 times.

Compiled on the board. Executed it with sudo (my OS user doesn't have access to the character device files).

All worked ok. The little c++ program got access to the hardware and blinked.

 

So basic steps went all perfectly. My naive attempts to cross-compile without studying failed.

I'll now start crawling the internet for a good explanation on setting up an xcompile toolkit.

 

 

 

 

BeagleBone - First Little Checks
BeagleBone - Cross Compile c++ on Windows
BeagleBone - Show XWindow Graphic Apps on Windows Desktop
  • Sign in to reply

Top Comments

  • DAB
    DAB over 6 years ago +1
    Very nice post. DAB
  • clem57
    clem57 over 6 years ago +1
    I guess I would not have used CCS for cross compile. But then again why not? Did you try the TI version or the GNU or both? Clem
  • Jan Cumps
    Jan Cumps over 6 years ago in reply to clem57 +1
    I have by now tried virtually any combination of C toolchains on CCS v 6.2 - TI's and various arm/linaro versions. I haven't been successful to create a linux runable executable yet.
  • Jan Cumps
    Jan Cumps over 6 years ago in reply to clem57

    CCS is my main dev environment for embedded. I know the ins and outs of that environment and of plain Eclipse.

     

    (dodging for ide war bullets: my favourite ide is netbeans. I'll get my coat)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • clem57
    clem57 over 6 years ago in reply to Jan Cumps

    BTW, talking about CCS v 6.2 I spent over 6 hours installing first the base and then add ons for eclipse plus updates last. Turns out to be about 13GB code. imageWhy??? It had more, but I gave up.

    Clem

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

    I have by now tried virtually any combination of C toolchains on CCS v 6.2 - TI's and various arm/linaro versions. I haven't been successful to create a linux runable executable yet.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • clem57
    clem57 over 6 years ago

    I guess I would not have used CCS for cross compile. But then again why not? Did you try the TI version or the GNU or both?

    Clem

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 6 years ago

    Very nice post.

     

    DAB

    • Cancel
    • Vote Up +1 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 © 2023 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