Quantcast OpenOCDinLinux - eLua Wiki
Locked History Attachments

OpenOCDinLinux

Installing OpenOCD in Linux

Install dependencies

$ sudo apt-get install libusb-dev automake texinfo build-essential git-core

Install FTDI drivers

$ wget http://www.intra2net.com/en/developer/libftdi/download/libftdi-0.18.tar.gz
$ tar -xzf libftdi-0.18.tar.gz
$ cd libftdi-0.18/
$ ./configure
$ make
$ sudo make install
$ sudo ldconfig

Installing OpenOCD

$ git clone git://openocd.git.sourceforge.net/gitroot/openocd/openocd openocd-git
$ cd openocd-git/
$ ./bootstrap
$ ./configure --enable-maintainer-mode --enable-ft2232_libftdi --prefix=/path/to/openocd/installation
$ make
$ make install

A flashing example on an Olimex STR-E912 kit #copy the files olimex-arm-usb-ocd.cfg and str912.cfg to the root of your OpenOCD installation folder

$ cd /path/to/openocd/installation
$ ln -s /path/to/image/to/be/record your_binary_image.bin
$ sudo bin/openocd -f olimex-arm-usb-ocd.cfg -f str912.cfg