配置kdevelop+stlink 的STM32开发环境

1、安装kdevelop

sudo apt-get build-dep gcc
sudo apt-get install build-essential
sudo apt-get install kdevelop

2、安装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
git clone https://github.com/texane/stlink.git
cd stlink
make
cd build/Release && make install DESTDIR=_install
将st-flash复制到/usr/bin下就可使用sudo st-flash write test.bin 0x8000000下载程序了

3、安装交叉编译

sudo apt-get install gcc-arm-none-eabi

你可能感兴趣的:(Linux)