Skip to main content

Show Posts

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

Messages - mashi

1
OpenOCD JTAG / Re: Problem using BusPirate and OpenOCD
Yes, it ends like this:

Code: [Select]
Debug: 212 34 buspirate.c:985 buspirate_print_buffer(): 31
Debug: 213 38 buspirate.c:949 buspirate_serial_read(): should have read = 4 actual size = 4
Debug: 214 38 buspirate.c:985 buspirate_print_buffer(): 42 42 49 4f
Debug: 215 38 buspirate.c:949 buspirate_serial_read(): should have read = 1 actual size = 1
Debug: 216 38 buspirate.c:985 buspirate_print_buffer(): 31
Debug: 217 10038 buspirate.c:949 buspirate_serial_read(): should have read = 4 actual size = 0
Error: 218 10038 buspirate.c:953 buspirate_serial_read(): Error reading data
Error: 219 10038 buspirate.c:729 buspirate_jtag_enable(): Buspirate error. Is is binary//OpenOCD support enabled?
2
OpenOCD JTAG / Re: Problem using BusPirate and OpenOCD
ian: I am building the source off SVN.  I tried with both values of 115200 and 1000000.  Neither works.  I then installed openocd 0.3.1 via apt-get, but same result.

I then tried flashing the buspirate with the firmware robots linked to.  The buspirate then identifies itself as:

Code: [Select]
Bus Pirate v3b
Firmware v6.0RC (r572)  Bootloader v4.4
DEVID:0x044F REVID:0x3046 (24FJ64GA002 B8)
http://dangerousprototypes.com

However it seems to behave exactly the same, the 06 is followed by another BBIO:

Code: [Select]
Debug: 172 34 buspirate.c:985 buspirate_print_buffer(): 42 42 49 4f
Debug: 173 34 buspirate.c:949 buspirate_serial_read(): should have read = 1 actual size = 1
Debug: 174 34 buspirate.c:985 buspirate_print_buffer(): 31
Debug: 175 34 buspirate.c:917 buspirate_serial_write(): size = 1 ret = 1
Debug: 176 34 buspirate.c:985 buspirate_print_buffer(): 06
Debug: 177 34 buspirate.c:949 buspirate_serial_read(): should have read = 4 actual size = 4
Debug: 178 34 buspirate.c:985 buspirate_print_buffer(): 42 42 49 4f
3
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.01232295616session_write_close ( )...(null):0
20.01262427192ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01262427968Database_MySQL->query( ).../DatabaseHandler.php:119
40.05832566688Database_MySQL->error( ).../Db-mysql.class.php:273