Skip to content

Commit

Permalink
stlink: Documented the main and alternative pinouts
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux authored and esden committed Oct 1, 2023
1 parent 08583c1 commit 4c73cdc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/platforms/stlink/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@ then they often don't provide a UART interface. In this case, build the firmware

Note: on some clones, SWIM is strongly pulled up by a 680 Ohm resistor.

## External connections

| Function | Normal Pin | Alt Pin |
| --------- | ---------- | ------- |
| SWCLK/TCK | PA5 | - |
| TDO | PA6 | - |
| TDI | PA7 | - |
| SWDIO/TMS | PB14 | - |
| SWO | PA10 | - |
| nRST | PB0 | PB6 |

The alternative pinout uses the same pins as the normal unless noted otherwise for a function.
This second pinout is used on some clone boards - if you are using a clone, check the schematic.

NB: SWDIO/TMS is on P**B**14, not P**A**14.

## Upload BMP Firmware

* Keep the original ST Bootloader.
Expand Down

0 comments on commit 4c73cdc

Please sign in to comment.