Stlink V2 Installation Use detailed

Source: Internet
Author: User

1. Unzip the St-link_v2_usb driver.zip file.

2. Run the extracted St-link_v2_usbdriver.exe file and install the Stlink V2 driver. The installation path keeps the default path as far as possible.

3. After the installation is complete, you can view the Stlink V2 related options in the Start menu. :

2013-7-2 10:15 Upload Download Attachments (43.27 KB)

4. Connect the Stlink to the computer via the USB port.

5. Right-click on "My Computer" and select "Properties" to open the "System Properties" window. Select the Hardware Options page and click Device Manager. As shown in the following:

2013-7-2 10:15 Upload Download Attachments (57.98 KB)

6. In the newly emerged window, click on "Universal Serial Bus Controller". You should see the Stlink device information.

2013-7-2 10:15 Upload Download Attachments (56.26 KB)

7. When the STLINKV2 driver can correctly discover the hardware, it can be used for stm8,stm32 simulation download. 8. More about the use of STLINKV2 view the relevant documentation in the driver directory, as shown in:

2013-7-2 10:15 Upload Download Attachments (32.04 KB)


9---17 lectures on the process of imitating STM8 chip in STVD STLINKV2. 18-32 explains the process of imitating STM32 chip in STLINKV2 in MDK.
9. For the installation of STVD and the installation of the Cosmic compiler, please see the "STM8 Debug detailed. pdf" document. The STVD of the "STM8 debug in detail. pdf" Document is an earlier version. Currently STVD has been upgraded to "Sttoolset STVD 4.3.3.zip" version.

10. Using STLINKV2 requires the STVD software to be upgraded to the 4.3.3 version first. Unzip the "Sttoolset STVD 4.3.3.zip" file and install it. 11. Open the HELLO.STW project file in the "Example\1 GPIO" directory of the routine. This file is stm8s207rbt6 as the primary CPU. Open the project as shown in.

2013-7-2 10:15 Upload Download Attachments (38.21 KB)

12. Open the Menu "Debug instrument" and select the "Target Settings" option as shown in.

2013-7-2 10:15 Upload Download Attachments (40.87 KB)

13. In the New dialog box, select the "Swim st-link" Hardware emulator and click on the "OK" button.

2013-7-2 10:15 Upload Download Attachments (46.79 KB)

14. Connect the emulator to the target board while powering the target board. 15. Select the "Start debugging" option under the "Debug" menu, or click the "" button. For the single-chip computer download simulation.

2013-7-2 10:15 Upload Download Attachments (36.05 KB)

16. The following download interface appears.

2013-7-2 10:15 Upload Download Attachments (14.36 KB)

17. After that, you can run a single-step simulation of the program. As shown in.

2013-7-2 10:15 Upload Download Attachments (54.08 KB)


18. It is extremely convenient to download the JTAG port of the STM32 chip using STLINKV2. And the speed is not slower than jlink. 19. Install the MDK4.6 software. Open the Beep.uvproj file under the project "STM32 example\1 TIM1 LED Flash" directory. As shown in.

2013-7-2 10:18 Upload Download Attachments (39.34 KB)

20. Connect the STLINKV2 emulator to the target board and power the target board. 21. Open the option options: Under the Project menu, as shown in:

2013-7-2 10:15 Upload Download Attachments (46.68 KB)

22. In the dialog box that appears, select the "St-link Debugger" option under the Debug page and click "Settings Settings".

2013-7-2 10:15 Upload Download Attachments (65.09 KB)

23. If the stlink is properly connected and the target board is not found, the following dialog box appears.

2013-7-2 10:15 Upload Download Attachments (52.22 KB)

24. Power supply to the target board, when the target board information is correctly found, the "JTAG Device Chain" area has the relevant content, as shown in.

2013-7-2 10:15 Upload Download Attachments (54.89 KB)

25. When it appears, the CPU can be emulated for download.

26. Click "OK". In the Option dialog box, select the "Utilities" option page and select "St-link Debugger" flash programming as shown in.

2013-7-2 10:15 Upload Download Attachments (40.89 KB)

27. Click "Settings" to appear as shown in the dialog box.

2013-7-2 10:15 Upload Download Attachments (41.29 KB)

28. Click "Add" to add the simulated CPU information. As shown in.

2013-7-2 10:15 Upload Download Attachments (57.47 KB)

29. Click "ADD". In the Returned dialog box, select OK. Such as.

2013-7-2 10:15 Upload Download Attachments (43.71 KB)

30. Return to the "option" dialog box and click "OK" to complete the emulator selection and configuration. 31. You can download or run the simulation directly in MDK. As shown in.

2013-7-2 10:15 Upload Download Attachments (44.24 KB)

32. At this point, the STLINKV2 can be imitated 32 chip.
The above arrangement is for reference only.

Stlink V2 Installation Use detailed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.