DAPLink 디버그 프로브
(DAPLink Debug Probe)
개요
- 본 제품은 DAPLink 디버그 프로브 입니다.
- USB Type C 커넥터를 장착하고 있으며, SWD 및 JTAG 디버그 인터페이스를 지원합니다.
- Keil MDK, IAR workbench, pyOCD 등의 툴체인을 지원합니다.
특징
-
Support programming and debugging target MCUs based on ARM Cortex core, such as STM32, GD32, NRF51/52
● Support SWD and JTAG debugging connector
The driver-less CMSIS-DAP based debugging interface provides a channel over which the CMSIS-DAP debug protocol runs. This enables all the leading industry standard tool chains to program and debug the target system. Supported tools include :
Keil MDK
IAR Workbench
pyOCD
Other CMSIS-DAP capable debuggers
● Support a USB serial port
Mini DAPLink debug probe also provides a USB serial port which can be bridged through to a TTL UART on the target system. The USB Serial port will appear on a Windows machine as a COM port, or on a Linux machine as a /dev/tty interface and on Mac OS as a /dev/usbmodem.
● Support software reset, the target board will be reset upon accomplish downloading firmware
문서
-
Driver Installation
While Linux and Mac OS don’t require any drivers, Windows version older than Windows 10 will require a serial port driver. Please download driver from https://github.com/wuxx/nanoDAP/tree/master/driver/windows7_serial_driver . Please install “mbedWinSerial_16466.exe” for mini DAPLink.
How to program
1.Connect mini DAPLink debug probe with the target board by SWD or JTAG connector
2.Plug mini DAPLink debug probe to PC USB port.
If everything goes well, a virtual serial port and a USB-HID device will appear on the device manager of computer.3.Configure the debugging tool. Take Keil MDK as an example(SWD connector).
(1) Open Keil, click “Options for Target”-> “Debug”, and select “CMSIS-DAP Debugger”.(2) Click “Settings” button and configure the “Debug” page, as shown below
(3) Configure the “Flash Download” page, as shown below
4.Click “Download” button or enter F8 to download codes to the target board.
How to use serial port
1、Connect mini DAPLink debug probe with the target board as shown below,
2、Plug mini DAPLink debug probe to host computer. Check the serial port number in device manager as shown below,
3、Open serial port tool on host computer, such as Putty, SSCOM. Configure the serial port number and baud rate to connect with the target board. Then it works as shown below
How to program with OpenOCD
We provide a script tool to program the target MCU with OpenOCD. Please download the script tool in https://github.com/wuxx/openocd-toolbox. Then double click the script without installation.
Documentation
● User manual: https://github.com/wuxx/nanoDAP/blob/master/doc/README.md
● Hardware and software:https://github.com/wuxx/nanoDAP
● Serial Port Driver for Win7: https://github.com/wuxx/nanoDAP/tree/master/driver/windows7_serial_driver
● Script Tool for OpenOCD: https://github.com/wuxx/openocd-toolboxFAQ
●Q: The computer prompts that there is no serial port driver on Windows 7
A: While Linux and Mac OS don’t require any drivers, Windows version older than Windows 10 will require a serial port driver. Please download driver from https://github.com/wuxx/nanoDAP/tree/master/driver/windows7_serial_driver
●Q: Keil MDK prompts “SWD/JTAG Communication Failure”, how to resolve it?
A: First, please check whether pins of debug probe and target board are connected correctly. Second, please check whether the voltage of target board is sufficient. If the target board is power supplied by debug probe, the voltage may be insufficient since the max output current of USB is 500mA.
●Q: Keil MDK prompts “RDDI-DAP Error”, how to resolve it?
A: First, please check whether pins of debug probe and target board are connected correctly. Second, please try to use shorter DuPont lines since signals between DuPont lines may interfere each other if DuPont lines are too long. You can also try to reduce the programming speed. Generally, the problem can be resolved by the above methods.
●Q: Can mini DAPLink debug probe be used for debugging in Linux?
A: In Linux, you can use mini DAPLink with OpenOCD to program and debug the target MCU. OpenOCD is a popular debugging tool all over the world as it’s open source and powerful. Since OpenOCD is cross-platform, you can also
use OpenOCD to debug MCU in Windows by writing configuration scripts.