How To Configure Eclipse For BBB board.
Install the Eclipse at PC with Debian:
Go to the https://www.eclipse.org/downloads/
![](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image001.jpg)
Select correct download file.
Extract the file and run Eclipse installer (eclipse-inst)
![Obraz zawieraj�cy tekst
Opis wygenerowany automatycznie](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image002.jpg)
Select Eclipse IDE for Embedded C/C++ Developers.
![](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image003.jpg)
Install the Eclipse IDE.
Open the Eclipse.
![](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image004.jpg)
From the Menu select New->Other
Select C++ Project
![](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image005.png)
Press Next
Fill the Project name
Select Hello World C++ Project and Cross GCC
![Obraz zawieraj�cy tekst
Opis wygenerowany automatycznie](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image006.png)
Select Next
![Obraz zawieraj�cy tekst
Opis wygenerowany automatycznie](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image007.jpg)
Fill the Basic Settings an press Next.
![Obraz zawieraj�cy tekst
Opis wygenerowany automatycznie](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image008.jpg)
Fill correct Cross compiler prefix and path (if you don’t have installed Cross Compiler for BeagleBone Black see the https://www.modbus.pl/Install the cross toolchain for BBB.html )
Press Finish. The Eclipse should create Test_BBB.cpp file with code:
#include <iostream>
using namespace std;
int main() {
cout << "!!!Hello World from Eclipse!!!" << endl;
return 0;
}
Select from Eclipse Menu Project->Build Project.
When the build process is finished you should see that the Binaries have indicator [arm/le]
�
Copy the application to BBB board with command
andrzej@debian11:~$ scp Test_BBB debian@192.168.7.2:/home/debian
From BBB terminal start the Test_BBB:
debian@beaglebone:~$ ./Test_BBB
!!!Hello World!!!
Configure the Eclipse for BeagleBone Black
Enable SSH Auto Login to BeagleBone Black
From the Linux terminal type commands:
andrzej@debian11:/usr/bin$ ssh-keygen
andrzej@debian11:/usr/bin$ ssh-copy-id debian@192.168.7.2
andrzej@debian11:/usr/bin$ ssh-add
Now you can login to BBB board without password.
Configure remote access to BBB
From Eclipse menu select Help->Install New Software.
From the remote General Purpose Tools select and press Next.
![](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image010.jpg)
Restart Eclipse after installation.
![Obraz zawieraj�cy tekst
Opis wygenerowany automatycznie](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image011.jpg)
From Eclipse menu select Window-> Show View->Other�
![](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image012.png)
From Remote Systems open Remote Systems and Remote Shell
![Obraz zawieraj�cy tekst
Opis wygenerowany automatycznie](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image013.png)
Create new connection from Remote System
![](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image014.png)
Select Linux and press Next
![Obraz zawieraj�cy tekst
Opis wygenerowany automatycznie](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image015.jpg)
Configure the Remote Connection and press Next
![](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image016.jpg)
Select ssh.files and press Next
![](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image017.jpg)
Select processes.shell.linux and press Next
![](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image018.jpg)
Select ssh.shells and press Finish.
![](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image019.jpg)
Right click on the BBB connection and select Connect
![](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image020.jpg)
Enter correct User ID and Password. Select Save user ID and Save password.
![Obraz zawieraj�cy tekst
Opis wygenerowany automatycznie](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image021.png)
If you expand Sftp Files you should see the BBB file system in the Eclipse IDE.
![](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image022.jpg)
Change the Test_BBB.cpp to:
#include <iostream>
using namespace std;
int main() {
cout << "!!!Hello World from Eclipse!!!" << endl;
return 0;
}
Build the project from Eclipse. In the Project Explorer right click at the Test_BB-[arm/le] and select Copy.
![](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image023.jpg)
In the Remote Systems right click at the My Home and select Paste.
![](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image024.jpg)
Select Overwrite and press OK.
![Obraz zawieraj�cy tekst
Opis wygenerowany automatycznie](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image025.jpg)
From Eclipse menu select Window->Terminal
![](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image026.jpg)
Click the Open a Terminal icon.
![](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image027.png)
Launch the terminal to BBB board.
![](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image028.jpg)
Run the Test_BBB application from Eclipse terminal:
debian@beaglebone:~$ ./Test_BBB
!!!Hello World from Eclipse!!!
Automatically transfer build application to BBB board.
In the Project Explore right click at Test_BBB project. Select Settings and Build Steps.
In the Post-build steps command type scp Test_BBB debian@192.168.7.2:/home/debian
Press Apply and Close.
![Obraz zawieraj�cy tekst
Opis wygenerowany automatycznie](https://www.modbus.pl/Configure%20Eclipse%20for%20Beglebone%20Black_pliki/image029.jpg)
Change the Test_BBB.cpp to
#include <iostream>
using namespace std;
int main() {
cout << "!!!Hello World from Eclipse!!!" << endl;
cout << "!!!Auto transfered!!!" << endl;
return 0;
}
Build the project from Eclipse. The binary file should be automatically transferred to BBB board.
From Eclipse Terminal run the Test_BBB application:
debian@beaglebone:~$ ./Test_BBB
!!!Hello World from Eclipse!!!
!!!Auto transfered!!