Roshan Br
Roshan Br

Reputation: 360

Cross-Compiling for BeagleBone Black on Windows?

I have tried quite a few things on the internet but all seems to be not working when I cross compile on eclipse (with GNU MCU ARM and Sourcery Lite ), the binary on the BB-Black gives segmentation fault. Did someone try cross-compiling in recent time?

Upvotes: 0

Views: 4383

Answers (3)

Spacefish
Spacefish

Reputation: 323

I created a repository providing an example how to cross-compile for the beagle bone black on both Linux and Windows (MacOS should be possible as well) with CMake. Also includes Eclipse project files and instructions on how to perform remote debugging with the TCF agent:

https://github.com/spacefisch/beaglebone-crosscompiling

Upvotes: 1

Limag
Limag

Reputation: 23

Now, in 2020 it is much simpler. Download "Code Composer Studio IDE for Windows Host" from https://www.ti.com/. It is an Eclipse based IDE, for many TI targets. It includes the compiler too.

Upvotes: 1

Roshan Br
Roshan Br

Reputation: 360

Setting up Beagle Board Tool chain for windows:

Online tutorial: In the tutorial it is mentioned that how to setup the tool chain in eclipse, cross compile on windows and deploy on the windows. - http://jkuhlm.bplaced.net/hellobone/

Pre-Requisite:

In order for beagle-bone to work with your laptop, you need to install the driver for the beagle bone.

https://beagleboard.org/getting-started - Follow the link above and download the drivers at step 2. - Important: To install the driver, you need to switch off the driver signature safety feature of windows OS. The instructions to do so is mentioned at the link below: https://www.youtube.com/watch?v=71YAIw7_-kg&feature=youtu.be

Install the following: 1. Java SDK : http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

  1. Install Eclipse IDE for C/C++

  2. After opening your Eclipse:

    • Go to: Help > Eclipse Market Place > Search “GNU MCU Eclipse Plugin” and Install
  3. Linaro Tool chain : http://releases.linaro.org/components/toolchain/binaries/latest-7/arm-linux-gnueabihf/

    • Download the toolchain from the link above named “gcc-linaro-7.3.1-2018.05-i686-mingw32_arm-linux-gnueabihf.tar.xz”
    • Extract it to a convenient location, recommended “C:/Linaro”
  4. Install GNU Make: http://gnuwin32.sourceforge.net/packages/make.htm

  5. Now please open the online tutorial mentioned in the beginning of this article and follow step-4 onwards.

  6. Use your programmer instincts to import the project, edit make file, launch the remote system via eclipse, create a SSH connection to beagle bone black.

Upvotes: 2

Related Questions