sudo apt-get install git make cmake libusb-1.0-0-dev
sudo apt-get install gcc build-essential

git clone https://github.com/stlink-org/stlink
cd stlink
cmake
make

cd build/Release/
cd bin
sudo cp st-* /usr/local/bin
cd ../lib
sudo cp *.so* /lib

cd 到源码根目录
然后
cd config/udev/rules.d/
sudo cp  49-stlinkv* /etc/udev/rules.d/

命令:
lsusb命令查看st-link

st-flash erase
st-flash reset
st-info --probe
st-flash read out.bin 0x8000000 0x40000
st-flash write xxx.bin 0x8000000

标签: none

评论已关闭