To debug a standalone executable file, you need to import it to a new or existing
project in your workspace. This guide walks you through the process of importing an ELF file
into a local project.
-
Launch the Import Executable wizard: go to on the menu. In the Import dialog, click , then click Next.
-
Choose the ELF file for import:
-
Click the Browse button to browse to the ELF
file.
The Select executable field displays the full path of the
ELF file. The gray field next to the Browse
button displays the processor architecture recognized from the ELF
file.
-
In the tree of processors, point the processor and the core that are
being target in the selected ELF file.
The Description field displays the information about the
selected processor and core.
-
Click Next.
-
Choose the project for import:
-
Click the New Project Name option to create a new project for
import, specify the project name. Alternatively, click the
Existing project option to use an existing
project for import, then click Search... and pick
the project for import from the list.
-
Configure the creation of a launch configuration. If you do not need a
new launch configuration for debugging, remove the Create
Launch Configuration flag. Otherwise, select the debug
configuration type from the list and specify the new configuration
name.
-
Select from the list (if possible) the compiler to be used in the
project.
The Toolchain Name field displays the selected compiler
to be used in the project. Availability of toolchains depends on device
and launch configuration selected.
-
(Optional) Click Browse and browse to a folder
with the source code associated with the ELF file.
The folder will be included into the Source Lookup
Paths list in the new launch configuration.
-
Click Finish.