Importing an executable

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.

  1. Launch the Import Executable wizard: go to File > Import... on the menu. In the Import dialog, click S32 Design Studio for S32 Platform > C/C++ Executable as S32DS Project, then click Next.
  2. Choose the ELF file for import:
    1. 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.
    2. 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.
    3. Click Next.
  3. Choose the project for import:
    1. 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.
    2. 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.
    3. 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.
    4. (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.
  4. Click Finish.