1. Create a session configuration file.

    This is an xml file containing a projects list that should be launched in a multi-core debug session. The following shows an example for a triple-core device. For a dual-core device, remove the third partner node.

    <?xml version="1.0" encoding="utf-8"?>

    <sessionSetup>
    <partner>
    <name>cm0</name>
    <workspace>C:\Users\mtw-multi-core\Multicore_App\multi-core_workspace.eww</workspace>
    <project>cm0</project>
    <config>Debug</config>
    <numberOfCores>1</numberOfCores>
    <attachToRunningTarget>false</attachToRunningTarget>
    </partner>
    <partner>
    <name>cm7_0</name>
    <workspace>C:\Users\mtw-multi-core\Multicore_App\multi-core_workspace.eww</workspace>
    <project>cm7_0</project>
    <config>Debug</config>
    <numberOfCores>1</numberOfCores>
    <attachToRunningTarget>true</attachToRunningTarget>
    </partner>
    <partner>
    <name>cm7_1</name>
    <workspace>C:\Users\mtw-multi-core\Multicore_App\multi-core_workspace.eww</workspace>
    <project>cm7_1</project>
    <config>Debug</config>
    <numberOfCores>1</numberOfCores>
    <attachToRunningTarget>true</attachToRunningTarget>
    </partner>
    </sessionSetup>

  2. Configure multi-core debugging for the CM0+ project.

    1. Go to

      Project > Options -> Debugger

      .

    2. Switch to the

      Multicore

      tab.

    3. Select the

      Advanced

      radio button and specify a path to the session configuration file in the

      Session configuration

      field.

    4. Click

      OK

      .


    ../figures/image46.png

  3. Save the workspace.