Linking Object-code Files

You can build this relocatable assembly project by selecting Project > Build Project from the IDE menu bar. When the project is built, the Linker generates a *.elf and a *.map file in the FLASH subfolder in the project directory.

The Project_1.elf and Project_1.map files are the Linker output files resulting from the object-code and PRM files.

To debug the project:

  1. From the main menu bar of the IDE, select Run > Debug Configurations .

    The Debug Configurations dialog box appears. The left side of this dialog box has a list of debug configurations that apply to the current application.

  2. Expand the CodeWarrior Download configuration.
  3. From the expanded list, select the debug configuration that you want to modify.
  4. Click the Debugger tab. The Debugger page appears in the area beneath the tabs.
  5. Change the settings on this page as per your requirements. For example, select the required target processor and simulator/emulator.
  6. Click the Apply button to save the new settings.
  7. Click the Debug button button to start the debugging session.

The perspective switches to the Debug perspective displaying the debugging process.

In the Debug perspective, you can control your program's execution by setting breakpoints, suspending launched programs, stepping through your code, and examining the values of variables.

The Debug perspective displays information about:

The Debug perspective also drives the Source view. As you step through your program, the Source view highlights the location of the execution pointer.