Debugging DPM/LSM Projects

The settings in the launch configurations handles all core-specific initializations. To set up the launch configurations, perform these steps.

  1. Ensure that you machine has USB NEXUS Multilink connected to a Leopard (MPC5643L) DPM board.
  2. Select Run > Debug Configurations.

    A menu of launch configurations appears.

    Figure 1. Debug Configurations Dialog Box
    Debug Configurations Dialog Box
  3. Select the core or cores to be debugged using the Target checkboxes. In this case you can debug core 0 or both cores.
  4. Click Debug.
  5. Debugger halts execution at first statement of main().

    The Debug view displays all the threads associated with the core.

    Figure 2. Multicore Debugging - Debug Core 0
    Multicore Debugging - Debug Core 0
  6. Repeat steps one through four to download all the other cores.
    Figure 3. Multicore Debugging - Debug All Cores
    Multicore Debugging - Debug All Cores
    Note: When you enter debug, the DPM project will show you two cores, first stopped at main() and the second stopped at __start_p1. For the LSM project you will see only one core stopped at main().
  7. Select a thread from core 0 in the Debug view.

    All the views in the Debug perspective will be updated to display the debug session for the selected core.

    Figure 4. Debugging a LSM Project
    Debugging a LSM Project
    Figure 5. Viewing Debug Information for Core 0
    Viewing Debug Information for Core 0