Debugging on a VDK

This topic describes how to start a debug session in the simulation environment.

Before you proceed, make sure that you have installed the simulation software and performed the required configuration settings. For details, refer to S32DS Installation Guide > Installing Synopsys tools .

When using a certain VDK for the first time, add the VDK configuration files to the Synopsys workspace:
  • In the S32 Design Studio installation directory, go to /S32DS/config/vpconfigs/. Copy the required S32x folder to the clipboard.
  • In your Synopsys workspace directory, browse to /NXP_S32xxxx_ECU/vpconfigs/ where the VDK configurations for the required target processor are located. Drop the copied S32x folder inside.

To run a debug session:

  1. In S32 Design Studio, click VDK Debug > Launch Simulation using VP Config on the menu.
  2. In the Open VP Config dialog box, specify the following settings:
    • VP Project: Locate the snps.vpproject file from the <Synopsys_workspace_path>/NXP_S32xxxx_ECU folder.
    • VP Config: Select the VDK configuration that you have copied to the Synopsys workspace.

    Make sure that option Launch simulation after opening VP Config is selected.

  3. Click OK to start simulation. This procedure may take a few minutes.
  4. When the simulator has started, build the project.
  5. To start a debug session, click Debug As > Debug Configurations. In the Debug Configurations dialog box, go to GDB Hardware Debugging section in the left pane. Click the launch configuration generated for your project and click Debug.


    Selecting a launch configuration for debugging on a VDK

  6. By default, simulation is suspended. To resume it, press F8 or click VDK Debug > Resume Suspended Simulation on the menu.
If you need to debug a multi-core program, run launch configurations for all cores before clicking Resume Suspended Simulation. Notice that you can suspend execution of only one thread at a time during debugging.