RE: [beagleboard] IDE (eclipse) for Beaglebone on Windows

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?

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.

Here are a couple of links that might help.
http://exploringbeaglebone.com/chapter7/
http://jkuhlm.bplaced.net/hellobone/

https://www.youtube.com/watch?v=af-1hDfoRcg
https://elinux.org/images/d/df/Using_VS_and_VS_Code_for_Embedded_Development.pdf

Using VisualGDB although I am not sure if this is needed any more.
https://visualgdb.com/tutorials/beaglebone/qt5/cross-compile/

Cheers,

Jon

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

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

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

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.

Try downloading the gcc-linaro-7.5.0-2019.12-i686-mingw32_arm-linux-gnueabihf toolchain and set the Cross Settings to reference this:
https://releases.linaro.org/components/toolchain/binaries/latest-7/arm-linux-gnueabihf/

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

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

You may need to unpack the archive as administrator on windows.
Run your extract program as admin, then select the archive and extract it …

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

This clarification helps, let me try this. thank you.

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).