通通

ST-LINK V2-1

 
Overview

I couldn’t bear the fact that the ST-Link-V2 I had only had a USBA male connector and needed a long Dupont cable to connect to the board, so I came up with this project.

I referred to the tutorial from the guy below, thank you very much. However, I have to complain that the resistor and capacitor packages are exactly the same (I’m too lazy to change them and just use them).

https://oshwhub.com/CYIIOT/ST_LINK-V2_1

I changed the schematic diagram and redrawn the PCB. The other downloading methods are exactly the same.

 

 

 

 

 

 

 

Quote this tutorial from this guy

Boss link: https://oshwhub.com/CYIIOT

1. Update firmware

 

There are three methods for firmware update
 
  • Download the official firmware upgrade app
STSW-LINK007 : Firmware upgrade for ST-LINK, ST-LINK/V2, ST-LINK/V2-1 and STLINK‑V3 boards
 
The versions of the released upgrade package tools are detailed in the official RN0093 release manual (uploaded in the attachment).
 
The latest firmware version number as of July 2020
 
Firmware upgrade package latest firmware version.png
 
  • Use the upgrade tool provided by STM32CubeProg or STM32 ST-LINK utility to upgrade
 
STM32CubeProg V2.4.0 built-in firmware version
 
STM32Cube Pro firmware upgrade version.png
 
STM32Cube Pro firmware upgrade version introduction.png
 
  • Use the built-in upgrade tool of Keil MDK-ARM to upgrade. When the ST-link version is lower than the built-in version of MDK, you will be prompted to upgrade.
The built-in firmware upgrade version of Keil MDK-ARM v5.31 is the same as the built-in firmware upgrade version of STM32CubeProg V2.4.0, both are V2.J35.M26
 
This article uses the STM32CubeProg V2.4.0 built-in upgrade tool to update the firmware.
 
hint
See the attached video for the firmware burning and update process.

 

2. Verification

Verification.png
Display the above information and confirm that the firmware is OK

 

3. Test

  1. Test the burning function, use Keil-MDK, download the program successfully, indicating that the burning function is normal
  2. Test the Debug function and use Keil-MDK for debugging. If it can be debugged, it means that the Debug function is normal.
  3. To test the U disk drag and burn function, you need to generate a bin file ( bin file generation method ), drag the bin file to the U disk simulated by ST-link, and successfully burn it, indicating that the virtual U disk function is normal.
  4. Test the serial port transceiver function: Use Dupont cable to connect the TX and RX of ST-LINK V2-1, open the serial port assistant, send data, and the receiving area receives the same data, indicating that the serial port transceiver is normal

 

4. Things to note

  1. The ST-LINK firmware upgrade tool does not know which version it starts from, and does not support cross-version firmware updates.
  2. The recent versions of ST-LINK firmware have added read protection, and the SWD port is locked, so the firmware cannot be read or written through the SWD port.
  3. If you want to change to firmware such as DAP-LINK, you cannot burn the firmware through the SWD port, but you can erase the STM32 firmware information through ISP, and then you can use the SWD port to read and write normally.
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-19 04:09:49

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号