1. Create a

    debug_m55.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_m55.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

      : VECTRESET

    • Reset after Connect

      : Not selected

    J-Link Target Driver Setup



    Use the following options:

    • Port

      : SW

    • Max Clock

      : 1 MHz

    • Connect

      : Normal

    • Reset

      : Core

    • Reset after Connect

      : Not 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.