Skip to content

xiongyihui/mbed-CMSIS-DAP

Repository files navigation

mbed CMSIS-DAP

Turn a mbed-enabled development board with USB into a CMSIS-DAP debug probe.

mbed CMSIS-DAP is based on mbed os 5. If you prefer to using mbed os 2, you can try Simple-CMSIS-DAP

Build

git clone https://github.com/xiongyihui/mbed-CMSIS-DAP.git
cd mbed-CMSIS-DAP
pip install mbed-cli
mbed deploy
mbed compile -t gcc_arm -m nrf52840_dk

Hardware

Devices supported by mbed os 5 usb stack should be supported, such as nRF52840, LPC17xx and STM32.

Tested devices:

For nRF52840 MDK USB Dongle

  1. Download pre-built firmware CMSIS-DAP for nRF52840 MDK USB Dongle

  2. Use nRF Connect Desktop or nRF Util to upgrade the firmware via its bootloader

    pip3 install nrfutil
    nrfutil pkg generate --hw-version 52 --application-version 1 --sd-req 0x00 --application cmsis-dap-for-nrf52840-mdk-usb-dongle-0x1000.hex cmsis-dap.zip
    nrfutil dfu usb-serial -pkg cmsis-dap.zip -p /dev/ttyACM0
    
  3. Connect the USB Dongle with a ARM microcontroller through SWD interface

    • nRESET - p0.6
    • SWCLK - p0.7
    • SWDIO - p0.8

About

Turn a mbed enabled development board (with USB) into a CMSIS-DAP debug probe

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages