Some XMC7000 MCUs are triple-core devices. If you are going to use a second CM7 core in your IAR workspace, you need to implicitly set the target core in project settings so that IAR understands this project is targeting a second CM7 core. By default, IAR connects to the first CM7 core, so specifying the target core for it can be skipped.

  1. Select the project for the second CM7 core and go to

    Project > Options

    .

  2. Select the probe in the

    Debugger

    category, and switch to the

    Interface

    tab.

  3. Select the

    From file

    radio button, click

    Select

    next to the

    CPU

    label, and choose

    M7_1

    :



  4. Switch to the

    Setup

    tab, and select "Custom" from the

    Reset

    pull-down menu.



  5. In addition, specify a special linker script symbol in the project settings to distinguish CM7_0 from CM7_1, since there is a single linker script for the two CM7 cores:

    1. Select the project for the first CM7 core and go to

      Project > Options > Linker

      .

    2. Add

      CORE_CM7_0=1

      in the

      Configuration file symbol definitions

      field, and click

      OK

      .



  6. Do the same for the second CM7 core:

    1. Select the project for the second CM7 core and go to

      Project > Options > Linker

      .

    2. Add

      CORE_CM7_1=1

      in the

      Configuration file symbol definitions field

      , and click

      OK

      .


    Note:

    When debugging CM4/CM7 core stand-alone, make sure to rebuild the CM0+ project in case any changes were made, since launching a debug session only loads the CM0+ image, but does not build that CM0+ project.


  7. Build your CM7 project(s) before moving forward.