Open main menu

DAVE Developer's Wiki β

Changes

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

403 bytes added, 10:29, 6 September 2022
Introduction
{{InfoBoxTop}}
{{AppliesToSBCLynxAppliesToAXEL Lite AN}}{{AppliesToAXEL ULite AN}}
{{InfoBoxBottom}}
|2.0.0
|August 2022
|[https://wiki.dave.eu/index.php?title={{pageoldid|DESK-MX6-L&oldid=|15794 |DESK-MX6-L 1.0.0]}}|DESK-MX6-L 1.0.0 version
|}
==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 the host to work with DAVE Embedded Systems products. Also, classical "Hello, world!" example is detailed.
 
For more details about Eclipse Luna please refer to [https://projects.eclipse.org/releases/luna this page]
 
{{WarningMessage|text=Eclipse support has been [https://docs.yoctoproject.org/migration-guides/migration-2.7.html?highlight=eclipse removed from Yocto since Warrior release]. Releases greater than {{pageoldid|DESK-MX6-L|15794|DESK-MX6-L 1.0.0 MVM}} have not been validated nor supported.}}
 
{{ImportantMessage|text=The following instructions and screenshots have been taken from DESK-MX6-L MVM. Selecting the proper cross-tool chain, the same instructions are valid also for {{pageoldid|DESK-MX6UL-L|14293|DESK-MX6UL-L 1.0.1 MVM}} }}
==Eclipse integration in MVM==
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 Luna please refer to [https://projects.eclipse.org/releases/luna this page]
{{ImportantMessage|text=Even if Eclipse support has been [https://docs.yoctoproject.org/migration-guides/migration-2.7.html?highlight=eclipse removed from Yocot since Warrior release], the Eclipse Luna IDE has been installed and tested into DESK-MX6 MVM}}
==== Creating the project ====
[[File:GenericDESK-vmMX6-1280L_MVM-eclipseEclipse-debug7C-project-debug-remote-gdb-debug.png|800px1280px]]
* If the "Warning" prompt appears, click "Yes" so that you can confirm ssh authenticity.
 
[[File:DESK-MX6-L_MVM-Eclipse-C-project-debug-remote-gdb-ssh.png|1280px]]
* If the "open perspective" prompt appears, click "Yes" so that you in the Debug perspective.
[[File:GenericDESK-vmMX6-1280L_MVM-eclipseEclipse-debug8C-project-debug-remote-gdb-session.png|800px1280px]]
----
{{notelist}}
4,650
edits