Development environment for BBB and Win 7 64 bit for C-programming

23 views
Skip to first unread message

Stefan

unread,
May 22, 2017, 9:03:58 PM5/22/17
to BeagleBoard
Hallo guys,

I am trying to get a toolchain running for developing the Beaglebone Black in Windows 7 64bits with c-code. Me and my college are working on this problem for some days now, but we can't find a proper solution here. We are both no experts on MCUs but have some basic skills on c-coding. Our company is running Win 7, so we would like to stick with it.

So far we tried different approaches:

- Eclipse + ARM Crosscompiler and remote target
- Code Composer + ARM Crosscompiler and jtec

We tried different tutorials, but always got stuck on some point. Most of the times the guides were outdated, files were missing, versions were not compatible or we got errors.

Maybe you guys have experience and can recommend a simple or standard solution (Toolchain and guide) to c-code the BBB from Win 7.

Thank you very much!

Best regards
Stefan


Graham

unread,
May 22, 2017, 10:25:03 PM5/22/17
to BeagleBoard, gimpy...@googlemail.com
If the target is a Linux machine, you will have fewer communications problems, if you cross compile from a Linux, rather than a Windows environment.

If you must run on a Windows-64 machine, then I recommend you install Oracle VM Virtualbox on Windows 64.

Install Ubuntu on the virtual machine.

Install the Linux version of Eclipse for C language, with RSE (Remote System Explorer) on Ubuntu.
RSE allows you to have full access to the target's file system from the Eclipse IDE.

I find this works well for writing and running C programs on the BBB, provided that you have an adequate Windows machine, such as an i5, equivalent, or better processor.

If you have a puny processor in your Windows machine you are better off running Ubuntu native on the processor.

I ran into all kinds of Windows-Linux communications problems running Eclipse native on Windows.

--- Graham

==

Stefan

unread,
May 23, 2017, 7:50:04 AM5/23/17
to BeagleBoard, gimpy...@googlemail.com
Hallo Graham,

thank you very much for your detailed advice!

We have already thought about using a VM, but now that you say, it works well, we are going for it. Actually we have very strong notebooks with i7, 16gb and pci-e SSD. Using a VM should be no problem.

Is there a detailed tutorial for the ubuntu + eclipse + RSE installation for linux avaiable?

Best regards
Stefan

Graham

unread,
May 23, 2017, 6:11:30 PM5/23/17
to BeagleBoard, gimpy...@googlemail.com
I don't know of a single resource that covers the whole chain.
The closest is Derek Molloy's
but it is four years old, and out of date for many of the details, but the general approach is still the same.


Oracle VM VirtualBox on Windows is a standard installation.
Simple enough that you don't need the instructions for much.
You do need to allocate more than the minimum (default) memory and minimum number of virtualized cores to the VM.

Ubuntu on VirtualBox is a standard installation.
Get the ISO from the Ubuntu website, and put it on your Windows machine where it is easy to get to.
Open it from inside the VM.

Eclipse on Ubuntu is a standard installation. Instructions on the Eclipse website.
Use the newest one preconfigured for "C/C++" from the Eclipse site.
The one in the Ubuntu apt repository is 4 years out of date. Don't use that one.
RSE is an optional module for Eclipse, loaded through the application. Installation instructions are inside Eclipse 'Help.'

I assume that you will connecting between the BBB and the Windows/VM via Ethernet local network.
I doubt that this would work through the USB widget/gadget.

You will probably have to change the security settings on the BBB to allow SSH into the Root account, for easiest operation of RSE.
Otherwise, you will keep running into the Linux security on the BBB.

Google is your friend. 

Ask questions if you have problems.

--- Graham

==

William Hermans

unread,
May 23, 2017, 6:16:25 PM5/23/17
to beagl...@googlegroups.com

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/93e7854c-395a-4364-bfc3-4e8fbf9c2588%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Graham Haddock

unread,
May 23, 2017, 10:50:11 PM5/23/17
to BeagleBoard
William:
Great.  Derek did update his video, although he still refers to the original one on his website.
--- Graham

==

You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/nftQL4xQdb0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORogJZ753cg1L2qB2hpPORh5%2Br3JDQjd5hfeDk%2Bg7CY8ow%40mail.gmail.com.

William Hermans

unread,
May 23, 2017, 11:12:07 PM5/23/17
to beagl...@googlegroups.com
He's got 4-5 videos all on the same topic. Well . . .at least 3 anyway. I still think Ubuntu is the best option, because I know how temperamental Debian can be( for this purpose ). But it does look better with Jessie perhaps ? I'm still using Wheezy on my support system but the only cross compiling I do is with the kernel, and that will change soon when I get my ODROID XU4 development support system up and running. "Building" the case as we speak . . .

Graham

unread,
May 24, 2017, 9:19:08 AM5/24/17
to BeagleBoard
I have used the same tool chain (in various versions) for Angstrom, wheezy and jessie on the BBB without problems.

I think some of the recent security changes in BBB jessie might need to be loosened during development, 
(I like to develop in root on the BBB) but once the application is running you can move it wherever you want 
and set the security back to maximum.

--- Graham
Reply all
Reply to author
Forward
0 new messages