Skip to main content

Topics

This section allows you to view all Topics made by this member. Note that you can only see Topics made in areas you currently have access to.

Topics - mashi

1
OpenOCD JTAG / Problem using BusPirate and OpenOCD
After spending a few hours trying to get OpenOCD 0.5.0 (linux) talk to Bus Pirate I had to resign.  I am out of ideas.

First hurdle was: OpenOCD needs a "configure --enable-buspirate" in order for it to even compile support for Bus pirate.  Took me a while to figure this out.  The error message when running openocd is not very clear.

Second hurdle: There doesn't seem to be any OpenOCD support in latest version 5.10 of the Bus pirate firmware.  I eventually figured that out by reading this forum.  I proceeded to install version 5.8.

Third hurdle which I haven't yet been able to pass is related to communication.  I would like to know if anyone knows whether the log below indicates a problem between Bus pirate and OCD or is it from the Bus pirate to the target device?  Any hints or ideas appreciated. 

Code: [Select]
[b]:~# openocd -d 5[/b]
...
Debug: 88 13 buspirate.c:719 buspirate_jtag_enable(): Entering binary mode
Debug: 89 14 buspirate.c:915 buspirate_serial_write(): size = 20 ret = 20
Debug: 90 14 buspirate.c:977 buspirate_print_buffer(): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Debug: 91 14 buspirate.c:983 buspirate_print_buffer(): 00 00 00 00
Debug: 92 24 buspirate.c:947 buspirate_serial_read(): should have read = 4 actual size = 4
Debug: 93 24 buspirate.c:983 buspirate_print_buffer(): 42 42 49 4f
Debug: 94 24 buspirate.c:947 buspirate_serial_read(): should have read = 1 actual size = 1
Debug: 95 24 buspirate.c:983 buspirate_print_buffer(): 31
Debug: 96 24 buspirate.c:915 buspirate_serial_write(): size = 1 ret = 1
Debug: 97 24 buspirate.c:983 buspirate_print_buffer(): 06
Debug: 98 24 buspirate.c:947 buspirate_serial_read(): should have read = 4 actual size = 4
Debug: 99 24 buspirate.c:983 buspirate_print_buffer(): 42 42 49 4f
Debug: 100 24 buspirate.c:947 buspirate_serial_read(): should have read = 1 actual size = 1
Debug: 101 24 buspirate.c:983 buspirate_print_buffer(): 31
Debug: 102 24 buspirate.c:947 buspirate_serial_read(): should have read = 4 actual size = 4
Debug: 103 24 buspirate.c:983 buspirate_print_buffer(): 42 42 49 4f
Debug: 104 24 buspirate.c:947 buspirate_serial_read(): should have read = 1 actual size = 1
Debug: 105 24 buspirate.c:983 buspirate_print_buffer(): 31
Debug: 106 24 buspirate.c:947 buspirate_serial_read(): should have read = 4 actual size = 4
Debug: 107 24 buspirate.c:983 buspirate_print_buffer(): 42 42 49 4f
Debug: 108 24 buspirate.c:947 buspirate_serial_read(): should have read = 1 actual size = 1
Debug: 109 24 buspirate.c:983 buspirate_print_buffer(): 31
Debug: 110 24 buspirate.c:947 buspirate_serial_read(): should have read = 4 actual size = 4
Debug: 111 24 buspirate.c:983 buspirate_print_buffer(): 42 42 49 4f
Debug: 112 24 buspirate.c:947 buspirate_serial_read(): should have read = 1 actual size = 1
Debug: 113 24 buspirate.c:983 buspirate_print_buffer(): 31
Debug: 114 24 buspirate.c:947 buspirate_serial_read(): should have read = 4 actual size = 4
Debug: 115 24 buspirate.c:983 buspirate_print_buffer(): 42 42 49 4f
Debug: 116 24 buspirate.c:947 buspirate_serial_read(): should have read = 1 actual size = 1
Debug: 117 24 buspirate.c:983 buspirate_print_buffer(): 31
Debug: 118 24 buspirate.c:947 buspirate_serial_read(): should have read = 4 actual size = 4
Debug: 119 24 buspirate.c:983 buspirate_print_buffer(): 42 42 49 4f
Debug: 120 24 buspirate.c:947 buspirate_serial_read(): should have read = 1 actual size = 1
Debug: 121 24 buspirate.c:983 buspirate_print_buffer(): 31
Debug: 122 24 buspirate.c:947 buspirate_serial_read(): should have read = 4 actual size = 4
Debug: 123 24 buspirate.c:983 buspirate_print_buffer(): 42 42 49 4f
Debug: 124 24 buspirate.c:947 buspirate_serial_read(): should have read = 1 actual size = 1
Debug: 125 24 buspirate.c:983 buspirate_print_buffer(): 31
Debug: 126 24 buspirate.c:947 buspirate_serial_read(): should have read = 4 actual size = 4
Debug: 127 24 buspirate.c:983 buspirate_print_buffer(): 42 42 49 4f
Debug: 128 24 buspirate.c:947 buspirate_serial_read(): should have read = 1 actual size = 1
Debug: 129 24 buspirate.c:983 buspirate_print_buffer(): 31
Debug: 130 24 buspirate.c:947 buspirate_serial_read(): should have read = 4 actual size = 4
Debug: 131 24 buspirate.c:983 buspirate_print_buffer(): 42 42 49 4f
Debug: 132 24 buspirate.c:947 buspirate_serial_read(): should have read = 1 actual size = 1
Debug: 133 24 buspirate.c:983 buspirate_print_buffer(): 31
Debug: 134 26 buspirate.c:947 buspirate_serial_read(): should have read = 4 actual size = 4
Debug: 135 26 buspirate.c:983 buspirate_print_buffer(): 42 42 49 4f
Debug: 136 27 buspirate.c:947 buspirate_serial_read(): should have read = 1 actual size = 1
Debug: 137 27 buspirate.c:983 buspirate_print_buffer(): 31
Debug: 138 10026 buspirate.c:947 buspirate_serial_read(): should have read = 4 actual size = 0
Error: 139 10026 buspirate.c:951 buspirate_serial_read(): Error reading data
Error: 140 10026 buspirate.c:728 buspirate_jtag_enable(): Buspirate error. Is is binary//OpenOCD support enabled?

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01122272120session_write_close ( )...(null):0
20.01162403712ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01162404488Database_MySQL->query( ).../DatabaseHandler.php:119
40.05512543224Database_MySQL->error( ).../Db-mysql.class.php:273