18.Serial Wire Debug Probe¶
All DA145xx Development Kits contain a Segger J-Link device that provides Serial Wire Debug (SWD) capability. By default, this J-Link device is connected to the DA145xx device on the Development Kit board, however it is possible connect it to your own hardware, allowing the Development Kit board to act as a Debug Probe.
The following sections describe how to configure the different DA145xx development kits to operate as J-Link Debug Probes.
Note
Using a DA145xx Development Kit as a J-Link Debug Probe allows you to debug code running on custom hardware and to program the Flash and/or OTP.
18.1。DA14531 USB Development Kit¶
Disconnect the DA14531 on the USB Development from the Segger J-Link device by removing resistors R3 and R11. The locations of these resistors is shown below. Note that the complete design files (schematics, Gerbers and BOM) for the DA14531 USB Development Kit board can be foundhere.
确保the switches on the Development Kit board are configured as illustrated below, then connect the custom hardware to the Development Kit board using the jumper wires shown.
You can now download and debug code on your custom DA145xx based board using the Keil or Eclipse tools.
Note
If using long jumper wires you may have to reduce the SWD clock speed due to the increased capacitance these add to the interface.
18.2.DA14531 PRO Development Kit¶
Remove the daugther card from motherboard and then connect the custom hardware to the Development Kit board using the jumper wires show below. Note that the complete design files (schematics, Gerbers and BOM) for the DA14531 PRO Development Kit board can be foundhere.
You can now download and debug code on your custom DA145xx based board using the Keil or Eclipse tools.
Note
If using long jumper wires you may have to reduce the SWD clock speed due to the increased capacitance these add to the interface.