# # This script is used to set up openocb with FTDI drivers to get the TI LM3S6965 playing nice with GDB. # This was written for Ubuntu 10.04 'Lucid Lynx' # # ---------------------------------------------------------------------------- # "THE BEER-WARE LICENSE" (Revision 42): # wrote this file. As long as you retain this notice you # can do whatever you want with this stuff. If we meet some day, and you think # this stuff is worth it, you can buy me a beer in return - Phil Behnke # ---------------------------------------------------------------------------- # mkdir ~/openocb cd ~/openocb #Important: the libFTDI drivers from Intra2net are used instead of the ftd2xx drivers from FTDI. #The development package must be used sudo apt-get install libftdi-dev #get OpenOCD wget http://download.berlios.de/openocd/openocd-0.4.0.tar.bz2 tar -xjvf openocd-0.4.0.tar.bz2 cd openocd-0.4.0 #used the enable-ft2232_libftdi flag to tell the configure script to look for the libFTDI drivers. ./configure --enable-ft2232_libftdi make sudo make install cd ~/openocb wget http://claymore.egr.gvsu.edu/~steriana/courses/Downloads/ARM/ek-lm3s6965.cfg wget http://claymore.egr.gvsu.edu/~steriana/courses/Downloads/ARM/luminary-ek-lm3s6965.cfg sudo cp ek-lm3s6965.cfg /usr/local/share/openocd/scripts/board sudo cp luminary-ek-lm3s6965.cfg /usr/local/share/openocd/scripts/interface #make sure openocd is ran as root! echo "Ta da! Use \"sudo openocd -f /usr/local/share/openocd/scripts/board/ek-lm3s6965.cfg\" to start the OpenOCD server."