SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By fatalfeel
#187497
1.
apt-get install libftdi-dev
apt-get install libusb-1.0-0-dev

2.
i use notepadqq replace all Makefile -O2 to -O0

3.
cd [~home]/openocd-0.9.0
./configure --prefix=/opt/openocd --enable-maintainer-mode --enable-ftdi
make && make install

4.
in eclipse
File -> new -> c++ project
cancel [use default location]
input [~home]/openocd-0.9.0

5.
project properties
c/c++ build -> builder settings
[build directory]: [~home]/openocd-0.9.0

6. debug setting
c/c++ application
main tab: /root/openocd-0.9.0/src/openocd
arguments tab: -f /opt/openocd/share/openocd/scripts/target/imx6d-1gb.cfg

demo:
https://picasaweb.google.com/1061855410 ... 6517908210

done~~~ start debug