IDE (eclipse) for Beaglebone on Windows

323 views
Skip to first unread message

NAGABHOOSHANAM VEMULA

unread,
Aug 18, 2020, 1:41:37 PM8/18/20
to BeagleBoard
Hi,
As a newbie to Linux, looking for IDE and debuggers.

my setup, 
a) I have windows10 PC with ubuntu as application, (ubuntu on Windwos)
b) Connected to Beaglebone with SSH,
c) beaglebone has an internet-over-USB connection.

I am inclined towards an IDE and debugger (like eclipse) instead of Vi editor 

My question:
1) What are the various IDE options on Windows (eclipse and any other?)
2) Can we install any IDE on my Ubuntu--on-Windows? (may be stupid question)
3)  If I install eclipse IDE on windows. Does it help to connect to targetboard?
to run the program and debug.

Please guide me, Thanks in advance
.

da...@ddennis.net

unread,
Aug 18, 2020, 1:54:47 PM8/18/20
to beagl...@googlegroups.com

Are you running Ubuntu under the Windows Subsystem for Linux?  (  WSL )

If so WSL1 or WSL2?     Also,  if so I wasn’t aware you could run a GUI this way.    Can GNOME 3 be run under WSL?

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/5444751e-64a6-48a4-8a9d-eaf04c1e81c9n%40googlegroups.com.

jonnymo

unread,
Aug 18, 2020, 2:17:27 PM8/18/20
to Beagle Board
Yes, you can cross compile from Windows 10 to the Beaglebone but your best option would be Eclipse since you can compile on Windows and then scp the code over from Eclipse.  You can use Visual Studio but you would end up having to build on the remote target and not on Windows.  However, with Visual Studio you could use something like VisualGDB but will cost an extra $99 US. You can download and use it for a month for free though.



Cheers,

Jon

NAGABHOOSHANAM VEMULA

unread,
Aug 18, 2020, 2:47:25 PM8/18/20
to beagl...@googlegroups.com
Thanks John,
 As per your clarification, It helped me, let me proceed with eclipse on Windows and use scp to file transfers to target system.

Thanks Dave, Yes, I am using WSL, the link is https://www.microsoft.com/store/productId/9N6SVWS3RX71


Thanks and regards,
Nagabhooshanam Vemula


jonnymo

unread,
Aug 18, 2020, 3:15:44 PM8/18/20
to Beagle Board
In Eclipse, just create a Run Configuration and set it to 'SSH' for your target which is basically like SCP.  This should deploy the code and run it on the remote target.

Jon 

NAGABHOOSHANAM VEMULA

unread,
Aug 19, 2020, 2:52:18 PM8/19/20
to BeagleBoard
Hi,
In continuation of this discussion.  I am progressing, but yet to make the environment to work.
With this eclipse, I am successful to build and run c program (Hello world) in the native/host platform, windows machine.
But I am unable to add cross -compile option to "arm-linux-gnueabihf-"  as per the video below.
Ofcourse video was made for linux host. http://exploringbeaglebone.com/chapter7/  ( i am working on wondows host)

I am thinking settings at::  Project-properties->Settings->Tool Settings, But it looks be not correct .
 
I guess my eclipse 2020-06 version has changed a bit on setting options (unable to find a location, where to change). 
Anyone using this new version on windows host?, where to make changes for arm-linux-gnueabihf-

My environment,
1) Installed Eclipse 2020-06 version (latest) for C/C++ Development, as IDE.
2) installed JDK 14.02 as required for eclipse. 
3) installed tdm64-gcc-5.1.0-2 (MinGW gcc ) for cross compiler support
4) Using WIndows 10 machine as host

Thanks in advance.
  
Thanks and regards,
Nagabhooshanam Vemula
Project-properties->Settings->Tool Settings

robert.sty...@gmail.com

unread,
Aug 19, 2020, 3:25:05 PM8/19/20
to BeagleBoard
I feel for Nagabhooshanam

I have found getting the cross compiler working on Windows very difficult (compared to Linux, but no picnic there either).

I usually resort to the tools provided by the silicon manufacture <https://www.ti.com/tool/CCSTUDIO> and end up with several Eclipse based IDEs.

jonnymo

unread,
Aug 19, 2020, 3:29:14 PM8/19/20
to Beagle Board
Try downloading the gcc-linaro-7.5.0-2019.12-i686-mingw32_arm-linux-gnueabihf toolchain and set the Cross Settings to reference this:

Just unpack the file and reference it in Exlipse.
Ex:  
Prefix: arm-linux-gnueabihf-
Path: "Path to the toolchain"
Ex:
  PATH: H:\Development\BeagleBoard\Toolchain\gcc-linaro-7.5.0-2019.12-i686-mingw32_arm-linux-gnueabihf\bin

Set Tool Chain Editor to:
  Current toolchains: Cross GCC
   Current builder: CDT Internal Builder

This works for me with Eclipse 2019 

Cheers,

Jon


 

NAGABHOOSHANAM VEMULA

unread,
Aug 20, 2020, 9:51:01 AM8/20/20
to BeagleBoard
Thanks John,  

As suggested, this time, I have tried with "gcc-linaro-7.5.0-2019.12-" and eclipse 2019, I am able to build and run the project, again on host.
But still unable to find the options to change cross -compiler settings in eclipse 2019. Please see the pic attached,
Can you please share pic where to change settings in eclipse.

Where to enter the following.
Prefix: arm-linux-gnueabihf-
Path: "Path to the toolchain"


thanks in advance.
PICS.png

Jan Cumps

unread,
Aug 20, 2020, 10:08:11 AM8/20/20
to beagl...@googlegroups.com
You may need to unpack the archive as administrator on windows.
Run your extract program as admin, then select the archive and extract it ...

Virusvrij. www.avg.com


Virusvrij. www.avg.com

Ray Willis

unread,
Aug 20, 2020, 10:31:33 AM8/20/20
to BeagleBoard
Can't go wrong with vscode. And BBB comes preloaded with cloud9 ide.

jonnymo

unread,
Aug 20, 2020, 10:51:59 AM8/20/20
to Beagle Board
When you create your project, ensure you are selecting "Cross GCC" and not "MinGW GCC".  The MinGW is for windows dev.

Ex:
image.png

Jon

NAGABHOOSHANAM VEMULA

unread,
Aug 20, 2020, 4:33:14 PM8/20/20
to BeagleBoard
This clarification helps, let me try this. thank you.

Stuart Longland

unread,
Aug 25, 2020, 8:48:14 AM8/25/20
to beagl...@googlegroups.com
On 20/8/20 4:52 am, NAGABHOOSHANAM VEMULA wrote:
> With this eclipse, I am successful to build and run c program (Hello world)
> in the native/host platform, windows machine.
> But I am unable to add cross -compile option to "*arm-linux-gnueabihf*-"
> as per the video below.

Never tried developing for Linux from a Windows box, as I find Windows
to be an utterly terrible and confused platform for any kind of software
development…

That said, you might find you need to install the GNU ARM Toolchain.
Not sure if this needs to be installed on your Ubuntu environment
(`apt-get update && apt-get install -y gcc-arm-linux-gnueabihf` might do
what you need), or if you need to install a Windows toolchain.

This may help:
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads

You want a toolchain for arm-*-linux-eabihf (the * is not critical).
--
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
...it's backed up on a tape somewhere.

Help fund COVID-19 research:
https://stuartl.longlandclan.id.au/blog/2020/04/20/who-covid19/
Reply all
Reply to author
Forward
0 new messages