1. Create a

    debug_m33ns.ini

    file in the project folder, and add the following lines to it:

    LOAD $L%L NOCODE g, main

  2. Open the Options dialog. Select the

    Debug

    tab and select the applicable debug probe (CMSIS-DAP or J-Link). Make sure that the

    Load Application at Startup

    check box is not selected.



  3. Select the

    debug_m33ns.ini

    file in the

    Initialization File

    field.



  4. Click the

    Settings

    button to configure the target driver.



  5. Select the

    Debug

    tab, and choose applicable connection options, the configuration settings are different for CMSIS-DAP and J-Link. Refer to the following sections for the applicable options:

    CMSIS-DAP/ULINK2 Target Driver Setup



    Use the following options:

    • Port

      : SW

    • Max Clock

      : 1 MHz

    • Connect

      : Normal

    • Reset after Connect

      : selected

    Select desired

    Reset

    type. For PSOC™ Edge devices, there are two main reset types available: hardware reset using XRES and system reset by SYSRESETREQ.

    • For SYSRESETREQ the Vector Catch method is applied. The default reset type is SYSRESETREQ.



    • For XRES additional follow-up acquisition methods are available, including Test Mode acquisition, Vector Catch, and Break Point acquisition (an alternative acquire).

    The method to use is determined by the

    __Acquisition_Type

    debug variable. The debug variables are accessible for editing at tab Pack clicking

    Edit

    button.



    By default, the Test Mode acquisition is applied after XRES.

    J-Link Target Driver Setup



    Use the following options:

    • Port

      : SW

    • Max Clock

      : 1 MHz

    • Connect

      : Normal

    • Reset

      : Normal

    • Reset after Connect

      : selected

  6. For either driver, switch to the

    Flash Download

    tab and select

    Do not Erase Sectors

    radio button, and deselect

    Program

    ,

    Verify

    , and

    Reset and Run

    check boxes.



  7. Click

    OK

    to close the Target Driver Setup dialog.

  8. Switch to the

    Utilities

    tab. Deselect the check box

    Update Target before Debugging

    .



  9. Close the Options dialog and save the project.