Follow the steps listed below:
- Import an executable by selecting File > Import from the IDE menu bar.
The Import dialog box appears displaying the Select page.
- Expand the CodeWarrior tree-control and select MCU Executable Importer.
- Click Next.
The Import a MCU executable file page appears.
- Specify the desired name for the imported project in the Project name text box.
- Click Next.
The Select MCU executable file to be imported dialog box appears.
- In the File to import option, click Browse, navigate to the desired project and select the executable (.ELF/.ABS/.FLT/.AFX) file.
Note: Check the Copy to project folder checkbox as it allows to set up the debugging paths easier (more later on).
- Click Next.
The Device and Board page appears.
- Select the desired CPU architecture.
- Click Next.
The Connections page appears.
- Select the appropriate connection(s) for your project.
- Click Finish.
The selected project is imported into your workspace.
To set up the search paths (where to search the source files), follow the steps listed below:
- For this open the launch configuration of your project. To open the launch configuration:
- Select Run > Debug Configurations from the IDE menu bar.
- Expand the CodeWarrior Download tree-control and select the desired launch configuration
- Click the Source tab.
- Click Add.
The Add Source dialog box appears.
- Select Path Mapping and click OK.
- Select the newly created mapping and click Edit, which displays the dialog where you can create the mapping.
The Path Mappings dialog box appears.
- Click Add.
The Path Mapping dialog box appears.
- Enter the path which was used to compile the binary, and the path where the files can be found on your local machine.
- Continue to add mappings as needed.
Now to find out which path mappings are missing, right-click on the binary file in the CodeWarrior Projects view, and select the Properties from the context-menu. This displays the Paths and Symbols page. Here you can see which path mappings are still missing, and you can fix them accordingly.