Ubuntu安装STLINK

Before continuing, the following dependencies must be met:

1.libusb-1.0
1.1:sudo apt-get install libusb-dev
1.2:sudo apt-get install libusb-1.0-0-dev
2.cmake
2.1:sudo add-apt-repository ppa:george-edison55/cmake-3.x
2.2:sudo apt-get update
2.3:sudo apt-get install cmake

STLINK should run on any system meeting the above constraints.

The STLINK software source code is retrieved using:

$>:3:git clone https://github.com/texane/stlink.git

Everything can be built from the top directory:

$> 4:cd stlink

$: 5:make

$> 6:cd build/Release && make install DESTDIR=_install

7:将st-flash复制到/usr/bin下就可使用sudo st-flash write test.bin 0x8000000下载程序了

It includes:

a communication library (libstlink.a),
a GDB server (st-util),
a flash manipulation tool (st-flash).
a programmer and chip information tool (st-info)

你可能感兴趣的:(stm32)