Environment Setup for STM32F4Discovery

Cross Compiler

Download the cross-compiler for ARM here: GNU toolchain for ARM Cortex-M

Programmer

OpenOCD

git clone git://openocd.git.sourceforge.net/gitroot/openocd/openocd
cd openocd
./bootstrap
./configure --enable-maintainer-mode --disable-option-checking --disable-werror --prefix=${PREFIX} --enable-dummy --enable-usb_blaster_libftdi --enable-ep93xx --enable-at91rm9200 --enable-presto_libftdi --enable-usbprog --enable-jlink --enable-vsllink --enable-rlink --enable-stlink --enable-arm-jtag-ew
make
sudo make install
  • edit <path to openocd>/tcl/interface/stlink-v2.cfg
  • change hla_vid_pid 0x0483 0x3748 to hla_vid_pid 0x0483 0x374B
To Program
openocd -f interface/stlink-v2.cfg -c "set WORKAREASIZE 0x2000" -f target/stm32f4x.cfg -c "program project.elf verify reset"

QSTLink2

repo

git submodule update --init
qmake-qt5
make
sudo make install 
sudo reload udev

My Environment

Selection_101.png

 

SOURCE

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s