Most PSOC™-based BSPs default to using the KitProg3/MiniProg4 programmer/debugger launch configurations. This section covers how to use J-Link.

  1. Open your ModusToolbox™ application's

    bsp.mk

    file and enter the following variable:

    BSP_PROGRAM_INTERFACE=JLink

  2. Also enter the following variable to specify the path to the J-Link install directory:

    MTB_JLINK_DIR=<path to J-Link>

  3. Save the

    bsp.mk

    file.

  4. In a bash Terminal run:

    make vscode

    When the command completes, J-Link configurations will be shown. These are the same configurations described in

    Program/debug common

    , but applicable to J-Link.



  5. Open the

    settings.json

    file and

    <app>.code-workpace

    file to verify the path to the J-Link GDB server.

    For example, the default on Windows is:

    "cortex-debug.JLinkGDBServerPath": "C:/Program Files/SEGGER/JLink/JLinkGDBServerCL.exe"

    ../figures/image37.png

Connect the Kit

Follow the instructions provided with the kit and from SEGGER to connect it to the computer with the J-Link probe.