Skip to content

Instantly share code, notes, and snippets.

@strezh
Last active August 29, 2015 14:14
Show Gist options
  • Save strezh/6cc860828b43c923f64a to your computer and use it in GitHub Desktop.
Save strezh/6cc860828b43c923f64a to your computer and use it in GitHub Desktop.
Сборка инструментов для STM32 под Linux

Скачать

  1. Скачать ARM GCC Toolchain с https://launchpad.net/gcc-arm-embedded
wget https://launchpad.net/gcc-arm-embedded/4.9/4.9-2014-q4-major/+download/gcc-arm-none-eabi-4_9-2014q4-20141203-linux.tar.bz2
  1. Скачать Ecplipse Kepler: http://www.eclipse.org/downloads/packages/release/Kepler

  2. Установить из репозитория Kepler пакет "Programming Languages->C/C++ Developer Tools"

  3. В Eclipse добавить репозиторий:

name: GNU ARM Eclipse Plug-ins
URL: http://gnuarmeclipse.sourceforge.net/updates
  1. Установить GNU ARM Eclipse Plug-ins

  2. Собрать stlink:

# git clone https://github.com/texane/stlink
# cd stlink
# ./automake
# ./configure --prefix=/usr/bin
  1. дадим права обычному пользователя общаться с устройством:
sudo cp 49-stlinkv* /etc/udev/rules.d/
sudo udevadm control --reload-rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment