Setting up Eclipse
This HOWTO consider developing in Eclipse IDE for MicroZed APO.
Cross compiler already installed, like /usr/local/bin/arm-linux-gnueabihf-gcc in KN:E-23.
Add private SSH
For remote connection to MicroZed APO, private key of user root has to be integrated into Eclipse IDE.
Select
Preferences from
Window menu.
Select
SSH2 in
General → Network Connection left bar.
Click to
Add Private Key….
From
File System, find private key
mzapo-root-key in
/opt/apo/zynq/ssh-connect/ folder.
Confirm
Preferences changes.
Create project
Create
New → Project.
Select
C Project.
Type the
Project name.
Just
Next > click window.
Set cross compiler prefix
arm-linux-gnueabihf-. Path can be left empty or set to
/usr/local/bin/ or
/opt/OSELAS.Toolchain-2016.06.1/arm-cortexa8-linux-gnueabihf/gcc-5.4.0-glibc-2.23-binutils-2.26-kernel-4.6-sanitized/bin but that is not necessary. Then continue by
Finish.
Use context menu of the project (right click) and select New - File. You need to name file added to the project with appropriate extension (*.c).
Build project
Now, when the code is ready to be built and tested.
Select
Build Project from
Project menu.
From
Binaries subfolder of the project [right click] context menu select
Run As → Run Configurations.
Select
C/C++ Remote Application in left bar.
Click
New… in
Connection section.
Well… Now, it's the time, when Jump and link (JAL) instruction comes in handy. So just remember this position and focus on the different problem…
New connection
Select
SSH Only remote system type.
Put
IP ADDRESS of
YOUR BOARD. There is chance less or equal to approximately 9% that it will work with the same IP address shown in the next picture. This chance drops to approximately 0.4% when DHCP server in KN:E-2 flush its DHCP binding table and to approximately 5.6 * 10^{-6} when your board is connected in local area network (
LAN) different to KN:E-2.
Confirm new connection by
Finish button.
jr $ra
This is where the [Build project] section was interrupted, now it's possible to continue.
Add
absolute path for application,
/tmp/project is recommended.
Run created configuration.
SSH login
Connecting to MicroZed APO with proper username and key confirmation.
Type proper user
root, no password needed.
Confirm warning.
See the output in
Console.