# Download the program using the SWD in J-Flash

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

1.Install J-Link ARM toolset open one of J-Flash.

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

Select Create project from template to open the file selection box, find STM32F103C8.jflash, as shown.

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

2.Open the Options menu bar -> Project settings ..., switch to the Target Interface page, select download SWD, then click OK, as shown in Figure.

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

3.Then the Open Debugger for SWD interface CLK, DIO, GND based STM32F103C8T6 target plate PA13, PA14 and GND is connected, and then click on the menu bar Target -> Connect, under normal circumstances, the box will print LOG output similar to the following chart information If not, then please check the connection Open Debbuger with your computer and check the Open Debugger device drivers are properly.

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

4.When you see the above information, you can open the firmware file to be programmed menu bar File - after> Open data file ..., find the file you want to program, there will be a firmware binary data, as shown below.

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

5.This time click on the menu bar Target -> Auto will start automatically programmed,without question in the following figure LOG successful programming message will appear,if not, please check the wiring of the SWD Open Debugger interface with the target board is correct, power supply is normal.

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


---

# 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/downloadtheprogramusingtheswdinjflash.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.
