Difference between revisions of "Debugging with Eclipse (MVM)"
(→Example) |
|||
Line 8: | Line 8: | ||
target-specific source code paths: | target-specific source code paths: | ||
+ | |||
+ | === Configuring the Cross-Toolchains === | ||
+ | |||
+ | * Run Eclipse program: | ||
+ | |||
+ | |||
+ | [[File:Generic-vm-1280-eclipse1.png|800px]] | ||
+ | |||
+ | [[File:Generic-vm-1280-eclipse2.png|800px]] | ||
+ | |||
+ | [[File:Generic-vm-1280-eclipse3.png|800px]] | ||
+ | |||
+ | |||
+ | To configure the Cross Compiler Options, you must select the type of toolchain, point to the toolchain, specify the sysroot location, and select the target architecture. | ||
+ | |||
+ | * Select "Preferences" from the "Windows" menu. | ||
+ | |||
+ | |||
+ | [[File:Generic-vm-1280-eclipse-toolchain1.png|800px]] | ||
+ | |||
+ | |||
+ | * Select "Yocto Project ADT", add the cross-toolchain configuration and save the profile as your project name ("targetname" in this case). Click "Apply" and "OK". | ||
+ | |||
+ | |||
+ | [[File:Generic-vm-1280-eclipse-toolchain2.png|800px]] | ||
+ | |||
===Example=== | ===Example=== | ||
The following example shows how to build and debug classical "Hello, world!" example when working with [[SBC_Lynx_Embedded_Linux_Kit_(XUELK)|SBC Lynx Embedded Linux Kit (XUELK)]]. | The following example shows how to build and debug classical "Hello, world!" example when working with [[SBC_Lynx_Embedded_Linux_Kit_(XUELK)|SBC Lynx Embedded Linux Kit (XUELK)]]. | ||
− | + | ||
---- | ---- | ||
{{notelist}} | {{notelist}} |
Revision as of 16:01, 31 March 2016
Contents
Introduction[edit | edit source]
Generally speaking, 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[a]. Instead some MVM-related information are provided, in order to properly configure it to work with DAVE Embedded Systems products. 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[edit | edit source]
By default, cross-tool chain is intalled in TBD
.
target-specific source code paths:
Configuring the Cross-Toolchains[edit | edit source]
- Run Eclipse program:
To configure the Cross Compiler Options, you must select the type of toolchain, point to the toolchain, specify the sysroot location, and select the target architecture.
- Select "Preferences" from the "Windows" menu.
- Select "Yocto Project ADT", add the cross-toolchain configuration and save the profile as your project name ("targetname" in this case). Click "Apply" and "OK".
Example[edit | edit source]
The following example shows how to build and debug classical "Hello, world!" example when working with SBC Lynx Embedded Linux Kit (XUELK).
- ↑ 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.