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.

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

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。

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

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

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.

Last updated