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.

_images/dk_debug_probe.png

Fig. 55 Using a DA145xx Development Kit as a J-Link 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 found here.

_images/531_usb_dk_probe_1.png

Fig. 56 Disconnecting DA14531 from J-Link on USB Development Kit

Ensure 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.

_images/531_usb_dk_probe_2.png

Fig. 57 Connecting J-Link on USB Development Kit to Custom Board

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 found here.

_images/531_pro_dk_probe_1.png

Fig. 58 Connecting J-Link on PRO Development Kit to Custom Board

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.