Dangerous Prototypes

Dangerous Prototypes => Bus Pirate Support => AVRDude => Topic started by: liyin on November 02, 2010, 10:53:01 pm

Title: BP Not Responding
Post by: liyin on November 02, 2010, 10:53:01 pm
BP Firmware v5.9
AVRDude v5.10

Trying to upload bootloader to AVR, but can't get AVRDude to read the chip.
Title: Re: BP Not Responding
Post by: tgvaughan on November 03, 2010, 05:03:22 am
Hi Liyin,

Are you using GNU/Linux?  If so, did you update your kernel recently?  I've been experiencing connection issues with another FTDI-based device that are due to a bug that recently crept into the ftdi_sio library.  The errant changes have been recently reverted (http://www.spinics.net/lists/linux-usb/msg37790.html (http://http://www.spinics.net/lists/linux-usb/msg37790.html)) and should hopefully make their way back into the kernel soon...

HTH,
Tim
Title: Re: BP Not Responding
Post by: ian on November 03, 2010, 08:31:44 am
Hi liyin,

What command line options did you use?
Title: Re: BP Not Responding
Post by: liyin on November 03, 2010, 12:55:41 pm
I'm on Windows.

avrdude -P COM7 -p m328p -c buspirate
Title: Re: BP Not Responding
Post by: liyin on November 04, 2010, 10:09:12 pm
Anyone using BP and AVRDude on Windows?
Title: Re: BP Not Responding
Post by: Rubu on November 08, 2010, 09:02:49 pm
Hmm, odd. I've got the same issue here. Windows 7 64bit.
I tested the AVRDude support immediately when I flashed v5.9, but as I didn't have any avr's handy, I only waited to see if it was detected, and when that happend I figured that, as I thought nothing had changed since v4.x, it worked again. So I falsely reported it to work again, my bad.

Anyway, got the exact same problem, one thing I noticed though is that the power supplies don't seem to come on. Testing with or without a chip connected also yields the same result. Powering a chip from a different supply doesn't change anything either.
Title: Re: BP Not Responding
Post by: ian on November 08, 2010, 10:54:26 pm
Could you please run portmon while and post a capture of the traffic. I'll try to see what commands are causing issues:

http://technet.microsoft.com/en-us/sysi ... 96644.aspx (http://technet.microsoft.com/en-us/sysinternals/bb896644.aspx)
Title: Re: BP Not Responding
Post by: Rubu on November 08, 2010, 11:52:27 pm
Wish I could, Portmon doesn't seem to be compatible with 64 bit systems, tried finding an alternative but no luck so far.
Maybe you know another serial monitor that might be compatible?

I also tried poking my other FTDI chip at the TX and RX of the FTDI on the BP, but that didnt seem to give anything valueable.

did it once for TX once for RX, but this was still on v4.2, the last one that worked I believe.

TX:
Code: [Select]
#
 K`Å J¬S000PPP | } ~ PPP@#

RX:
Code: [Select]
Bus Pirate v3
Firmware v4.2 Bootloader v4.2
DEVID:0x0447 REVID:0x3043 (B5)
http://dangerousprototypes.com
HiZ>BBIO1SPI1ÿÿS00‘0
                    PýPýPýßßßÿÿÿ Ã¿ Ã¿ Ã¿ Ã¿PýPýPýßßßÿÿÿBBIO1
Bus Pirate v3
Firmware v4.2 Bootloader v4.2
DEVID:0x0447 REVID:0x3043 (B5)
http://dangerousprototypes.com
HiZ>2ú
       øð|ÿúñÿÿÈà

Should I do the same for v5.9? maybe a different baudrate?
Title: Re: BP Not Responding
Post by: ian on November 09, 2010, 08:06:15 am
Thanks for the output, but there's going to be a bunch of unprintable characters that I can't decode from a web posting.

Maybe Liyin can make a dump? I'll also try to setup to program the bootloader in an Arduino and capture it myself as soon as I work on the Bus Pirate next.
Title: Re: BP Not Responding
Post by: Rubu on November 09, 2010, 09:52:09 am
Yeah that's what  thought, I might be able to give it a run on another system later today, though.
Title: Re: BP Not Responding
Post by: ian on November 10, 2010, 09:49:06 am
Looks like the problem has been identified. Here's an updated firmware with a (temporary) fix, I'm not sure if this will be in the next release or not.

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