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 - jannis

1
Bus Pirate Support / Re: RS485 and Bus Pirate?
Actually all you need is a RS485-driver-IC like the SN75176 and connect it (R and D) to the bus-piate's UART-pins (RX and TX). You can use the two other pins (!RE and DE) to control data flow but you can connect them to GND if you just want to spy
2
AVRDude / Re: AVRDude Bus Pirate v4 Support
Hi there, what is the current status? I have a BPv4 with firmware v6.1 r1676 and I tried avrdude 5.11.1 with the patch from https://zencoding-blog.googlecode.com/s ... rate.patch

The first time it worked (it tried Binary Mode, failed, fell back to ASCII and succeeded in reading the identification and fuse-bits). Since then, everything failed. I added some debugging-output to AVRdude's buspirate.c (function entry) and here's what I found out:

- ASCII mode:
AVRdude doesn't set a mode. So after power-cycling the BP (HiZ-mode), the PowerOn-conmmand fails (not supported in that mode). Could be fixed in AVRdude but might break compatibility with v3/oder firmware?
Switching to DIO manually before running AVRdude makes PowerOn possible but fails later, setting SPI-mode manually gets me further but fails somehow later. Don't ask me why it worked on first try.

- Binary mode:
Initialisation and PowerOn working, gets stuck later. Output from AVRdude (verbose + function entries marked):
Code: [Select]
kripton@miramis ~/raspberry/bitwizard $ avrdude -c buspirate -p t44 -v -P /dev/ttyACM0 

avrdude: Version 5.11.1, compiled on Jul 10 2012 at 18:06:32
        Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
        Copyright (c) 2007-2009 Joerg Wunsch

        System wide configuration file is "/etc/avrdude.conf"
        User configuration file is "/home/kripton/.avrduderc"
        User configuration file does not exist or is not a regular file, skipping

        Using Port                    : /dev/ttyACM0
        Using Programmer              : buspirate
START: buspirate_open
        AVR Part                      : ATtiny44
        Chip Erase delay              : 4500 us
        PAGEL                        : P00
        BS2                          : P00
        RESET disposition            : possible i/o
        RETRY pulse                  : SCK
        serial program mode          : yes
        parallel program mode        : yes
        Timeout                      : 200
        StabDelay                    : 100
        CmdexeDelay                  : 25
        SyncLoops                    : 32
        ByteDelay                    : 0
        PollIndex                    : 3
        PollValue                    : 0x53
        Memory Detail                :

                                  Block Poll              Page                      Polled
          Memory Type Mode Delay Size  Indx Paged  Size  Size #Pages MinW  MaxW  ReadBack
          ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
          eeprom        65    6    4    0 no        256    4      0  4000  4500 0xff 0xff
          flash        65    6    32    0 yes      4096  64    64  4500  4500 0xff 0xff
          signature      0    0    0    0 no          3    0      0    0    0 0x00 0x00
          lock          0    0    0    0 no          1    0      0  9000  9000 0x00 0x00
          lfuse          0    0    0    0 no          1    0      0  9000  9000 0x00 0x00
          hfuse          0    0    0    0 no          1    0      0  9000  9000 0x00 0x00
          efuse          0    0    0    0 no          1    0      0  9000  9000 0x00 0x00
          calibration    0    0    0    0 no          1    0      0    0    0 0x00 0x00

        Programmer Type : BusPirate
        Description    : The Bus Pirate

START: buspirate_enable
Attempting to initiate BusPirate binary mode...
START: buspirate_send_bin:
START: buspirate_start_spi_mode_bin
START: buspirate_send_bin:
START: buspirate_recv_bin:
BusPirate binmode version: 1
START: buspirate_send_bin:
START: buspirate_recv_bin:
BusPirate SPI version: 1
START: buspirate_send_bin:
START: buspirate_recv_bin:
avrdude: Paged flash write enabled.
START: buspirate_send_bin:
START: buspirate_recv_bin:
START: buspirate_send_bin:
START: buspirate_recv_bin:
START: buspirate_send_bin:
START: buspirate_recv_bin:
START: buspirate_send_bin:
START: buspirate_recv_bin:
START: buspirate_send_bin:
START: buspirate_recv_bin:
AVR Extended Commands version 0
START: buspirate_initialize
START: buspirate_powerup
START: buspirate_program_enable
START: buspirate_send_bin:
START: buspirate_recv_bin:
START: buspirate_cmd
START: buspirate_send_bin:
START: buspirate_recv_bin:
avrdude: initialization failed, rc=-2
        Double check connections and try again, or use -F to override
        this check.

START: buspirate_powerdown
START: buspirate_send_bin:
START: buspirate_recv_bin:
^C

Any ideas?
4
Bus Pirate Development / Current status of BusPirate v4
(needed to put spaces in the URLs since "Your post looks too spamy for a new user, please remove off-site URLs".... Just wanted to quote sources ....)

Hi there,

I'm interested in purchasing a BusPirate. The information one can get about v4 of the device is a bit old:
dangerousprototypes . com / docs / Bus_Pirate_v4 says it is in "Test production" (as of 2011-09-17)
dangerousprototypes . com / docs / Dangerous_Prototypes_Projects_In_Development says it is "In initial production" (not changed since February)
dangerousprototypes . com / docs / Bus_Pirate_v4 says that "developer hardware is available for $50", but the price at the shop (www . seeedstudio . com / depot / bus-pirate-v4-for-developers-p-740.html ? cPath=174) is at $37.15

So my question is: What is the current status? Can I "safely" buy a v4 or might the hardware change in the future?

( ! ) 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.01572308304session_write_close ( )...(null):0
20.01602439880ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01602440656Database_MySQL->query( ).../DatabaseHandler.php:119
40.05982579376Database_MySQL->error( ).../Db-mysql.class.php:273