[[dt_openocd]]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dt_openocd [2014/02/16 22:18]
yusa
dt_openocd [2014/06/27 09:35] (current)
beckmanf added flyswatter usb configuration
Line 20: Line 20:
 <​code>​ <​code>​
 git clone git://​git.code.sf.net/​p/​openocd/​code openocd-code git clone git://​git.code.sf.net/​p/​openocd/​code openocd-code
 +</​code>​
 +
 +Install the libusb-1.0 package
 +
 +<​code>​
 +sudo apt-get install libusb-1.0-0-dev
 +./bootstrap
 +./configure --prefix=$HOME/​site
 +make
 +make install
 +</​code>​
 +
 +Add the file /​etc/​udev/​rules.d/​52-flyswatter.rules. This will make the usb device accessible without root permissions.
 +
 +<​code>​
 +# Flyswatter JTAG Debugger
 +SUBSYSTEMS=="​usb",​ ATTR{idVendor}=="​0403",​ ATTR{idProduct}=="​6010",​ MODE="​0666"​
 </​code>​ </​code>​
  
Line 153: Line 170:
 reg [NAME] [VALUE] reg [NAME] [VALUE]
 </​code>​ </​code>​
 +
  
  
Line 158: Line 176:
  
 If you want to debug your hardware more comfortable you are able to use gdb. If you want to debug your hardware more comfortable you are able to use gdb.
-You should use the gdb provided by your Toolchain. For example mipsel-none-elf-gdb.+You should use the gdb provided by your Toolchain. For example mipsel-none-elf-gdb ​for a MIPS architecture.
  
 <​code>​ <​code>​
Line 197: Line 215:
 </​code>​ </​code>​
  
-or walk step by step through your source code:+Walk step by step through your source code
  
 <​code>​ <​code>​
-(gdb) next)+(gdb) next
 </​code>​ </​code>​
  
 +or print variable content
  
 +<​code>​
 +(gdb) print [var]
 +</​code>​
  
  
  • dt_openocd.1392585483.txt.gz
  • Last modified: 2014/02/16 22:18
  • by yusa