Changes

Jump to: navigation, search

DESK-MX-L-AN-0006: Debugging with Eclipse

469 bytes added, 14:40, 30 April 2018
no edit summary
{{InfoBoxTop}}
{{AppliesToSBCLynx}}
{{Applies To Diva}}
{{InfoBoxBottom}}
==Introduction==
Generally speaking, [[Managed_Virtual_Machine_(MVM)|Managed Virtual Machines]] including Yocto build system provide all the required stuff to remotely debug applications running on the target, via Eclipse/ADT. It is beyond the scope of this article to describe in detail how to use Eclipse{{efn|Please note that Eclipse is not just a debugger, it is a full-featured IDE that allows to manage and build complex projects with a powerful user-friendly graphical interface.}}. Instead , some MVM-related information are provided, in order to properly configure it the host to work with DAVE Embedded Systems products. Also, classical "Hello, world!" example is detailed. For more details about Eclipse, please refer to these links:
*http://www.yoctoproject.org/docs/1.8/adt-manual/adt-manual.html
*https://www.youtube.com/watch?v=O22IWe4kUE8.
==Eclipse integration in MVM==
By defaultNo specific operations are required to run Eclipse, cross-tool chain is intalled as shown in <code>TBD</code>the following example.
targetBy default, cross-specific source tool chain is installed in <code paths:>/home/dvdk/<targetname>/sdk/latest</code>. <code><targetname></code> is the name of the actual hardware platform (i.e. <code>lynx</code>, <code>axelulite</code> etc.).
=== Configuring the Cross-Toolchains ===
===Example===
The following example shows how to build and debug classical "Hello, world!" example when working with [[SBC_Lynx_Embedded_Linux_Kit_(XUELK)|AXEL ULite and SBC Lynx Embedded Linux Kit (XUELK)]]. As stated before, this example is valid for all of the Yocto-based MVMs.
This section first shows how to create an Eclipse-based project. The second part illustrates how to start a debugging session for a simple "Hello , world!" application.
For more details about Eclipse Kepler please refer to [[http://help.eclipse.org/kepler/index.jsp?topic=/]]
* Expand "Yocto Project ADT Project" and select "Hello World ANSI C Autotools Project". Add "Project name". Click "Next" and "Finish".
 
[[File:Generic-vm-1280-eclipse6.png|800px]]
* Insert IP a ddress of the target board in the "Host name field". Click "Next" then "Finish".
* Add Insert the binary tree under test path for the remote device in "C/C++ Application" field and remote tree in "Remote Absolute File Path for C/C++ Application" field.
* Click "Select other" link near "Using Legacy Remote Create Process Launcher" and select "GDB (DSF) Automatic Remote Debugging Launcher".
* If the "open perspective" prompt appears, click "Yes" so that you in the Debug perspective.
 
 
[[File:Generic-vm-1280-eclipse-debug8.png|800px]]
----
{{notelist}}
170
edits

Navigation menu