# 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/-M2HX7oEn0kHf3cloj5u)

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

![](/files/-M2HX7oIdLtIKcb_eFsV)

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/-M2HX7oK2QPPDgyrJ66o)

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/-M2HX7oMJBJnu3pFHLnw)

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

![](/files/-M2HX7oOVTrDd7AFgkoV)

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/-M2HX7oQVURhVfglgnRN)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bananapi.gitbook.io/bpi-open-debugger-burn-board/en/useswddebugdownloadthemdkarm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
