DAPLink Manual#
Warning
⚠Special instructions: please pay attention to users who deliver goods before June 17, 2023:
Expand View
Due to the wrong resistance attached to the first batch of boards, high-speed download cannot be used.
If it meets the requirement ofdelivery before June 17, 2023
, the government will reissue the revised DAPLink free of charge (the received boards do not need to be returned)
The plan will avoid issuing single coupons and notify you by unified text message. If you have any questions, please go to the purchasing platform to consult customer service.
The solution for using this batch of burners is as follows:
Change the low speed to use, the speed needs to be as low as possible
Throw it away. Use a new replacement
Self-replacement resistance is 100 Ω, which is equivalent to Bai Piao’s debugger, as shown in the following figure:
Overview#
DAPLink It is an official open source debugger scheme of ARM, with the official address of ARMmbed/DAPLink (github.com). It can be used to debug almost all single chip computers of arm cortex kernel. The latest M33 and M85 kernels also support debugging.
Based on ARM’s official code, Zeus was transplanted to Air32F103CBT6 and adapted the resources of 216M dominant frequencyand96K large RAM, supporting faster download speed (firmware open source), and designed an ultra-small DAPLink hardware
Main functions#
**The whole series of **Arm-cortex core chip debugging and burning, ARM official maintenance, follow-up new kernel will still support
A full-featured USB to serial port(CDC) with hardware DTR and RTS for automatic download
With U disk drag and drop burn function, you can directly drag hex or binfile to U disk to burn (only support burn CBT6)
Adapt to DAPLink V2 WINUSB version, the speed is 3 to 10 times higher than HID version, greatly saving download time
Support WEBUSB function, can burn firmware on web pages, support insertion of pop-up windows, no need to worry about not using it
Support Keil,IAR,PyOCD and other debugging environment
Hardware#
The size is only 2.5*1.3cm, which is smaller than USBA mouth.
Use 4-layer gold PCB design
Selection of sink TYPEC mouth more solid and stable
USB The port uses TI’s ESD chip protection
**High-current LDO **can provide power supply for external equipment while stably supplying power to air32
Four LED functions are:
dap Running indicator light, always on
Serial port CDC indication, flashing when serial port has data
DEBUG Illuminates when indicating, burning or debugging
MSC U The disk burning function indicator flashes when there is data.
Open Source Tutorial#
It’s so easy to use. I want to learn to make one myself, of course. All the information of the DAPLink of open source, all the software and hardware are open source.:
In order to enable Xiao Bai to learn, the great god of porridge also kindly recorded a complete tutorial on PCB design for everyone. using the all-open source KICAD design software, from drawing symbols, drawing schematic diagrams, drawing PCB, routing, making production documents, to how to place an order for proofing for the whole process teaching, follow the tutorial and easily learn the design of 4-layer boards.
Tutorial Address: Collection KiCad7.0 Tutorial-Production DAPLink
Using the Tutorial#
DAPLink The pin functions are assigned as follows
Note
Since the design is only suitable for 3.3V level, if 5V equipment is connected for debugging, the risk of burning shall be borne by oneself.
KEIL Configuration#
Click the project configuration magic wand, find the Debug tab, select the CMSIS-DAP Debugger in the drop-down list, and click Settings
Check whether the device is connected normally. If the connection is normal, you can see the device in the SW Device list, and you can adjust the clock speed to improve efficiency.
Note
Since this DAPLink uses the actual setting speed, if the device list is empty, it may be because the debugged chip cannot support higher frequencies, and can be used after lowering the frequency.
Update Firmware#
If the BUG is fixed later, the DAPLink firmware will be updated. At this time, we need to perform the following operations.
Note
Some computer systems are still using Win7 and cannot use DAPLink V2 version firmware. At this time, it is necessary to downgrade to V1 firmware.
Get the firmware you need from Air32 SDK Warehouse, please select the firmware at the end of
iap.hex
Short DAPLink board
RST
GND
Plug in the USB, a USB memory called
MAINTENANCE
will appear on the computerDisconnect the short connection between
RST
andGND
Copy the firmware file at the end of
iap.hex
into this USB memoryAfter copying for a few seconds, the DAPLink will be upgraded, and after a few seconds, it will automatically reconnect and the upgrade will be completed.
FAQ#
There is no driver on the plug-in computer#
If it is a WIN7 device, you recommend brush it into v1 firmware according to the above tutorial, or study how to install the driver yourself.
If connected, the serial device name is
mdeb Serial Port
, and the WINUSB driver cannot be automatically recognized. If the drive is contaminated, the solution is as follows:Device Manager-
Serial Ports (COM and LPT)
-mdeb Serial Port(COMxx)
-Right-click
-Uninstall device
, checkDelete driver software for this device
, and click OKDevice Manager-
Universal Serial Bus Controller
-a device at the beginning ofmdeb
-Right-click
-Uninstall device
, checkDelete the driver software for this device
, click OKClick the
Scan for Hardware Changes
button above Device Manager
Device Manager has a device, but KEIL does not recognize it#
Please upgrade to the version after 2021 KEIL
Or just like in the previous question, using a fake driver
The device manager has devices, and KEIL is the latest version, but it still doesn’t recognize it.#
It may be a windows driver identification problem, which can be operated as follows:
Open `Device Manager``
Expand
Universal Serial Bus Controllers
You may see one or more.
USB Composite Device
Double-click one by one to open them, cut to the “Details” tab, and change the “Properties” to the “Device Instance Path”`
If the display contains
USB\VID_0D28 & PlD_0204\
content, the device is DAPLINKOn the device-
Right-click
-Uninstall device
, click OKClick the
Scan for Hardware Changes
button at the top of the device manager, and you can identify it in KEIL after re-identification.
Device Manager has a device, but the openocd does not recognize it#
Please upgrade to the latest version after 2023 openocd
The burner is connected, but the debugged board is not displayed in the KEIL device list.#
The chip being debugged cannot support higher frequencies and can be used after lowering the frequency.
SWD function is turned off on the board being debugged
keil Download Times RDDI-DAP Error Solution#
DAPLink and MDK, the solution can try the following methods:
SWD Debug Line Problem:
Many people will say that I have no problem with other DAPLINK, because DAPLINK V1 version is very slow and has no requirements for lines.
*The DuPont wires of SWD and SCK are separated and scattered (one by one), * or SWD VCC SCK GND or VCC SWD GND SCK are connected side by side in this way, and the data lines are as short as possible.
connect the reset line of MCU
MDK Software Configuration Issues:
Set as shown below:
Adjust the speed of Max Clock, some MCUs only support 100K
MDK Version issues
Update MDK to 5.36 or later version
Open the pack installer in keil; Select the corresponding device and update the pack, including cmsis, to the latest.