Funktion | ST-Link 2.x Clone | ST-Link V3Minie | Notes | Kabel |
---|---|---|---|---|
3,3V | 3V3 (nicht empfohlen) | - | Rot | |
GND | GND | GND | Schwarz | |
SWDIO | (SW)DIO | T_JTMS/T_SWDIO (Pin 3) | SWD data input/output | Blau |
SWCLK | (SW)CLK | T_JCLK/T_SWCLK (Pin 4) | SWD Clock | Gelb |
NRST | RST | T_NRST (Pin 9) | Reset of targets STM32 | Grau |
VDD-Target | - | T_VCC (Pin10) | VDD von der Platine! Input Pin! Nur nötig beim ST-Link V3 Adapter! | Orange |
sudo apt install gcc build-essential cmake libusb-1.0-0 libusb-1.0-0-dev libgtk-3-dev pandoc -y
cd ~ && mkdir build -p && cd build
git clone https://github.com/stlink-org/stlink.git
cd stlink
make clean && make release
sudo make install
st-flash: error while loading shared libraries: libstlink.so.1
sudo ldconfig
st-info --probe --connect-under-reset
Bsp: flash: 32768 (pagesize: 1024) 32768 / 1024 = 32k
st-flash --connect-under-reset read firmware.bin 0x8000000 32k
st-flash --connect-under-reset erase
st-flash --connect-under-reset write firmware.bin 0x8000000
Bootloader offset
ermitteln