> For the complete documentation index, see [llms.txt](https://bananapi.gitbook.io/bpi-open-debugger-burn-board/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bananapi.gitbook.io/bpi-open-debugger-burn-board/zh/useswddebugdownloadthemdkarm.md).

# Use SWD debug download the MDK-ARM

To illustrate, here will be used as an example STM32F103C8T6.

**SWD interface to download programs in MDK-ARM**

1.First need to Open Debugger of SWD interface CLK, DIO, GND STM32F103C8T6 based target board in PA13, PA14 and GND are connected and open MDK-ARM.

2.Click Project, Option for Target'XXX 'or use the corresponding shortcut icon Alt + F7 or click on the toolbar to open the configuration options.

![](/files/-M2HWxcOroEDSOrETKSY)

3.Select the Debug tab, select the J-Link / J-Trace Cortex Options。

![](/files/-M2HWxcQ7LLcCOwJngPp)

4.Then click the settings button next to enter the Cortex JLink / JTrace Target Driver Setup settings, choose the way in SW Debug tab in Port。

![](/files/-M2HWxcSXT2Gn119BrVG)

5.Adding in Flash Download in Programming Algorithm corresponding algorithms do here is STM32F103C8 SCM instance, select STM32F10x Med-density Flash On-chip Flash 128k algorithm and click Add

![](/files/-M2HWxcUHCy9Y-AAYflV)

6.Select Use Target for the Utilities tab, select Flash Programming Tool J-Link / J-Trace Cortex, and then click OK to exit。

![](/files/-M2HWxcWF3Nm37el8-TS)

7.At this point, the setup is complete, you can compile the program, such as the error can be able to point LOAD button to start downloading the program to the chip.

![](/files/-M2HWxcYrP5p1j6FyAsu)
