-
-
Notifications
You must be signed in to change notification settings - Fork 781
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
platforms/stlink: add support for forcing ST-Link v2 clone detection
One of the ST-Link v2 clones I have (labelled "MINI ST-Link v2", "A" on one side of the PCB and "QYF-0685" on the other) gets detected as hardware version 1 rather than as a v2 clone (hardware version 257). It has PC13 pulled low via a 4.7kΩ resistor and PB11 connected to PB10 rather than pulled up. PA15 seems to be unconnected. It's hard to tell how other clones are wired and if PB10 is connected to something else on them. The safest choice is to provide a compile-time option to force "detection" of a clone (so we use PB6 for nRST).
- Loading branch information
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters