As needed, run the fw-loader tool to make sure the board firmware is upgraded to KitProg3. See the

KitProg3 User Guide

for details. The tool is in the following directory by default:

C:\Infineon\Tools\ModusToolboxProgtools-[version]\fw-loader\bin\

  1. In IAR Embedded Workbench, open the Options dialog, go to

    Debugger

    , and select

    CMSIS-DAP

    in the driver list:



  2. Select the

    CMSIS-DAP

    node, switch the interface from

    JTAG

    to

    SWD

    , and set the Interface speed to

    2MHZ

    .



    Note:

    When using MiniProg4 with a single-core PSOC™ 6 MCU, you must specify a special type ofResetunder theSetuptab, as follows:

  3. Click

    OK

    .

  4. Select

    Project > Download and Debug

    .

    The IAR Embedded Workbench starts a debugging session and jumps to the main function.


    ../figures/image26.png