| 61 | | |
| 62 | | == OpenOCD == |
| 63 | | [http://openocd.sourceforge.net/doc/html/index.html OpenOCD] is an on chip debugger which aims to provide in-system programming and debugging. In order to use OpenOCD on our platform, you must install current version of OpenOCD and apply a patch. Listed below are the steps involved. |
| 64 | | |
| 65 | | Note: These steps were performed on Ubuntu 13.04 32-bit and Ubuntu 14.04 64-bit. The following dependencies were installed prior to installing OpenOCD: libtool, git, curl, texinfo, automake |
| 66 | | {{{ |
| 67 | | $ git clone git://git.code.sf.net/p/openocd/code openocd |
| 68 | | $ cd openocd |
| 69 | | $ ./bootstrap |
| 70 | | $ ./configure --enable-ftdi --enable-maintainer-mode |
| 71 | | $ wget http://trac.gateworks.com/raw-attachment/wiki/jtag/gw16042.cfg |
| 72 | | $ wget http://trac.gateworks.com/raw-attachment/wiki/jtag/gateworks-openocd.patch |
| 73 | | $ git apply gateworks-openocd.patch |
| 74 | | $ make |
| 75 | | }}} |
| 76 | | |
| 77 | | We currently have a board configuration file for the gw2388 and our Ventana family line. You can grab either one by doing the following: |
| 78 | | {{{ |
| 79 | | wget http://trac.gateworks.com/raw-attachment/wiki/jtag/gw2388.cfg |
| 80 | | wget http://trac.gateworks.com/raw-attachment/wiki/jtag/gw5xxx.cfg |
| 81 | | }}} |
| 82 | | |
| 83 | | To run OpenOCD on the gw2388, just enter the following: |
| 84 | | {{{ |
| 85 | | ./src/openocd -f gw16042.cfg -f gw2388.cfg |
| 86 | | }}} |
| 87 | | |
| 88 | | To run OpenOCD on our Ventana family line, do the following (Assuming you are in the build directory for OpenOCD): |
| 89 | | {{{ |
| 90 | | ./src/openocd -f gw16042.cfg -f tcl/target/imx6.cfg -f gw5xxx.cfg |
| 91 | | }}} |
| 92 | | |
| 93 | | Expect to see retries as the MSP430 takes a few tries to get into 4-wire JTAG mode. After that, just follow the [http://openocd.sourceforge.net/doc/pdf/openocd.pdf openocd user manual]. |