# Download SWD debug using the IAR EWARM

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

**SWD interface to download the program in IAR EWARM**

1.Open the IAR EWARM, and create a new project, Tool chain ARM can choose, click OK.

![](https://1339817493-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2HWtRMO1SOVoE1wKC5%2F-M2HWuqfjq-tAqyjGf2g%2F-M2HWzWY4oNGom2TBK-1%2Fswd%208.png?generation=1584080152580548\&alt=media)

Select the menu bar Project-> Options ..., option box will pop up, as shown below

![](https://1339817493-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2HWtRMO1SOVoE1wKC5%2F-M2HWuqfjq-tAqyjGf2g%2F-M2HWzW_dV6Nl_zKhu3X%2Fswd%209.png?generation=1584080151851862\&alt=media)

2.Select General Options -> Target page, then select the Processor variant column in the Device, and then click the right button, and in turn find STM32F103C8 processor.

![](https://1339817493-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2HWtRMO1SOVoE1wKC5%2F-M2HWuqfjq-tAqyjGf2g%2F-M2HWzWbiwS_ZTd49Og7%2Fswd%2010.png?generation=1584080151427959\&alt=media)

3.Then choose General Options -> Library Configuration page stdout / stderr section of Via SWO.

![](https://1339817493-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2HWtRMO1SOVoE1wKC5%2F-M2HWuqfjq-tAqyjGf2g%2F-M2HWzWdSdpaqxleqvX3%2Fswd%2011.png?generation=1584080151232644\&alt=media)

4.Then select Debugger -> Setup -> Driver -> J-Link / J-Trace.

![](https://1339817493-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2HWtRMO1SOVoE1wKC5%2F-M2HWuqfjq-tAqyjGf2g%2F-M2HWzWftW5X-DKBer6V%2Fswd%2012.png?generation=1584080152193948\&alt=media)

5.Just find a way to drive, set as shown below, and click OK。

![](https://1339817493-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2HWtRMO1SOVoE1wKC5%2F-M2HWuqfjq-tAqyjGf2g%2F-M2HWzWhBVYWhomxWSJz%2Fswd%2013.png?generation=1584080151949621\&alt=media)

You can now click on the columnCompile button，Such error can clickRun button to download the firmware.


---

# Agent Instructions: 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/zh/downloadswddebugusingtheiarewarm.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.
