配置kdevelop stlink 的STM32開發環境

NO IMAGE

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