Skip to main content
Topic: Problems sending 'yes' to the v4 updater (Read 2619 times) previous topic - next topic

Problems sending 'yes' to the v4 updater

Hey, I've been trying to debug this for a few hours and figured its time to ask the experts.

I ordered the Bus Pirate from sparkfun on free day (no, i didnt get the free day discount), and I finally have time to play with it.  My first order of business was to update to the new v4 firmware.

I downloaded the updater pack and unpacked it. 

I connected PGC and PGD (from the instructions).

I tried to use the python script to install the updater:
Code: [Select]
sudo python P24qp.py -a BPv3-v2blupdaterVa3-v4.1.hex -s /dev/ttyUSB0 -v | tee output.txt
Which produced output.txt, which I have attached below.  It has a lot of verification errors and some checksum mismatches which worry me.

I then unplug the Buspirate, remove the connection, and reconnect the USB.
I try to connect with minicom:
Code: [Select]
sudo minicom -s
With the settings:
Code: [Select]
    | A -    Serial Device      : /dev/ttyUSB0                              |
    | B - Lockfile Location     : /var/lock                                 |
    | C -   Callin Program      :                                           |
    | D -  Callout Program      :                                           |
    | E -    Bps/Par/Bits       : 115200 8N1                                |
    | F - Hardware Flow Control : No                                        |
    | G - Software Flow Control : No 

Pressing 'Enter' gives me this message:
Code: [Select]
0    Upgrade cancelled.


Universal DS30 Loader installer v0.3 (C)hris 2010

Released under Creative Commons null license.
Found bootloader v unknown (probably v2)
Will install bootloader v4.1

Type 'Yes' to program the new bootloader.
Disconnect power if unsure (no harm done).

0    Upgrade cancelled.


Universal DS30 Loader installer v0.3 (C)hris 2010

Released under Creative Commons null license.
Found bootloader v unknown (probably v2)
Will install bootloader v4.1

Type 'Yes' to program the new bootloader.
Disconnect power if unsure (no harm done).

0    Upgrade cancelled.


Universal DS30 Loader installer v0.3 (C)hris 2010

Released under Creative Commons null license.
Found bootloader v unknown (probably v2)
Will install bootloader v4.1

Type 'Yes' to program the new bootloader.
Disconnect power if unsure (no harm done).

So far everything seems good, but whenever I press a character ('y', 'e', 's', or anything else) it gives me that message.  Additionally I've tried connecting with screen:
Code: [Select]
sudo screen /dev/ttyUSB0 115200 8N1

With the same response (each character gives me that message, I can't send 'yes').  Is there a problem with the updater? Am I doing it wrong?

(using ubuntu 9.10).

~Ajray

Re: Problems sending 'yes' to the v4 updater

Reply #1
Silly question,

did you test the operation of the buspirate before you tried to upgrade it?

If not i would try putting one of the older firmwares back on the unit and then see if it communicates properly.

my guess is that your pc isnt sending what you expect it is.

ALso not knowing anything about the linux programs your trying to use. to they have a emulator setting for what type of terminal its trying to emulate? try vt100 or ansi if it does.

anyway. i hope that helps.

Peter

Re: Problems sending 'yes' to the v4 updater

Reply #2
try using this:
screen /dev/ttyUSB0 115200 8N1
Vote "Logic Ninja" or "Bit Ninja" for the DangerousPrototypes SUMP Logic Analyzer!

Re: Problems sending 'yes' to the v4 updater

Reply #3
I'm not sure, but I have a feeling from supporting a few of their customers that SparkFun sent out some Bus Pirates with a 5volt regulator on VR2 instead of the 3v3 regulator. I told them about it three times, but they only said they'd 'look into it'. You might test between 3.3volts and ground to see if it reads 5volts, that might cause flash problems.
Got a question? Please ask in the forum for the fastest answers.

Re: Problems sending 'yes' to the v4 updater

Reply #4
[quote author="Scorpia"]ALso not knowing anything about the linux programs your trying to use. to they have a emulator setting for what type of terminal its trying to emulate? try vt100 or ansi if it does.[/quote]
Minicom defaults to the VT102 (similar to the VT100 terminal).  Tried again with an ANSI terminal, same story.

[quote author="Shadyman"]try using this:
screen /dev/ttyUSB0 115200 8N1[/quote]
Tried, and it has the same effect as using that command with sudo (from my original post).

[quote author="Ian"]I'm not sure, but I have a feeling from supporting a few of their customers that SparkFun sent out some Bus Pirates with a 5volt regulator on VR2 instead of the 3v3 regulator. I told them about it three times, but they only said they'd 'look into it'. You might test between 3.3volts and ground to see if it reads 5volts, that might cause flash problems.[/quote]
As far as I can tell the first reg (VR2?) is putting out 3.28V on my meter, so thats good.  I see two other regs (VR3 and VR4 i think) that appear to be disabled.
Upon closer inspection the one I tested says 'KB33' and the two disabled ones read 'KB50' and 'KB33'.

As an added benefit, I'm an electrical engineering student at university, so I have access to all kinds of debugging equipment if there are other ideas. (and i happen to own a few pieces myself).

Additionally I have a windows computer as well if the software would work differently under Vista.

[quote author="Scorpia"]did you test the operation of the buspirate before you tried to upgrade it?

If not i would try putting one of the older firmwares back on the unit and then see if it communicates properly.[/quote]
This appears to be my next order of business. :-)

Thanks for all the help and suggestions,
~Ajray

Re: Problems sending 'yes' to the v4 updater

Reply #5
It would seem to me that if the buspirate is capable of being upgraded and then runs the upgrader firmware that the basic operation of the bus pirate is ok.

I would try a different pc and see if you can get comms happening. maybe its an issue with the software on the pc for some reason.

Re: Problems sending 'yes' to the v4 updater

Reply #6
[quote author="Scorpia"]
It would seem to me that if the buspirate is capable of being upgraded and then runs the upgrader firmware that the basic operation of the bus pirate is ok.

I would try a different pc and see if you can get comms happening. maybe its an issue with the software on the pc for some reason.
[/quote]
It seems it is indeed okay.  I was able to 'upgrade' to 3.6 firmware, and the self-test checked out okay.

I want to use it to program some AVR's then I'll try upgrading to 4+ again under windoze.

~Ajray

Re: Problems sending 'yes' to the v4 updater

Reply #7
Hi, just to be sure did you got the latest upgrader? There was someone else that had the same problem, but the upgraderpackage was corrupted. Ian has uploaded a new one:

http://whereisian.com/forum/index.php?t ... 05#msg2105

I dunno if you have tried this package?