Keil Logo

Debugging with CMSIS-DAP

Follow these steps to program debugging using the µVision Debugger and the CMSIS-DAP driver. Detailed information can be found in the µVision User's Guide in the Creating Applications chapter.

  1. Connect to USB LINK connector of the mcb54110 Board. This applies powers the mcb54110 board.

    mcb54110 Board Connected via CMSIS-DAP Adapter

  2. Configure the Debugger in the Project — Options for Target — Debug dialog.

    Options for Target Button Use the Options for Target toolbar button and click the Debug tab to display the Debug dialog.

    Use: ULINK Cortex DebuggerSelect Use: and CMSIS-DAP Debugger in the drop-down to choose the on-board CMSIS-DAP interface as the debugging tool.


    Debug Load & Run OptionsCheck the Load Application at Startup and the Run to main() options to load your application and execute code up to the beginning of your main() function when the debugger starts.

  3. Click the Settings button to open the Cortex-M Target Driver Setup dialog.

    This dialog displays the IDCODE of the ARM device on the mcb54110 Board.

    JTAG Interface Options

    SW Mode & PortCheck the SWJ checkbox and select the SW option under Port to use the Single Wire mode interface. Max Clock should be set to 5MHz.


    Download OptionsSelect the Verify Code Download option under Download Options to compare the loaded application program with the Flash ROM content. You may disable this option to speed up the debugger start.

  4. Start the Debugger.

    Start/Stop Debug Button Use the Start/Stop Debug Session toolbar button to start debugging the program.

    Or

    Use the µVision command, Debug — Start/Stop Debug Session, to start debugging the program.

More information about setting up the CMSIS-DAP interface for debugging can be found in the CMSIS-DAP Debugger User's Guide.

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.