Bus Pirate v3.6 Communication error fix for Windows
The Bus Pirate v3.6 from Dangerous Prototypes arrived. So I followed the links on the wiki and installed the latest drivers on my windows 8.1 machine. Ready to go right? Nope.
Putty says no:
Looked in device manager and the drivers are installed and do not have any warning signs in front of it. Putty has some sort of connection and the PWR LED on the Bus Pirate is on. But I can type whatever I want into the terminal but nothing happens.
Weird. So I followed a lot of different suggestions from the community on the Dangerous Prototype forum (they are really helpful!). Tried to dig into it with the Bus Pirate GUI, thinking that if there is a connection I might update the firmware and then everything will work:
As you can see the GUI says No too.
Well lets see if I can upgrade the bootloader. There is a “hello world test” on the cmd-prompt. When you connect the PGD and the PGC the MODE LED lights up. Ok, thats good!
But then this output:
d:\downloads\bus pirate\BusPirate-package61\BPv3-firmware>pirate-loader.exe --dev=COM5 --hello
Pirate-Loader for BP with Bootloader v4+
Loader version: 1.0.2 OS: WINDOWS
Opening serial device COM5...OK
Configuring serial port settings...OK
Sending Hello to the Bootloader...ERROR
No reply from the bootloader, or invalid reply received: 4
Please make sure that PGND and PGC are connected, replug the devide and try again
Darn. So I am into my “WTF mode” and installed the drivers on the windows 7 machine. Same error. More shouting and cursing. Blame windows 8.1 and windows 7 so lets try it on the test machine (Vista). Nope, nada, nee! More cursing and shouting but that did not help me further either.
Now I am at the boiling point. Seeedstudio customer support (thanx Kevin!) was good (Seeed are the people who shipped it) and asked me all the things I already tried out so we could easily exchange errors and screenshots. Done that, been there, tried that.. After many emails forward and back, Seeed asked me to send the board back and they would return me another one.
Frustrated as I can be (why can’t I get it to work under all those windows flavours) I decided to do one more trick. I booted into my favorite Linux distro Crunchbang. I expected to see some errors in the log’s about the USB connection that might help me or the folks at Seeed to debug the error. To my surprise there was a /dev/ttyUSB0 available!
So I did the magic with
screen /dev/ttyUSB0 115200
And there it was! YES: Houston we have a connection!
First things first: Tried the self test to make sure everything was working ok and while I was on it I upgraded to the latest firmware.
Now I was sure the Bus Pirate worked, the latest firmware was on it. Back to windows and go go go!
Well the computer/putty said no again.
Then Samuel on the forum poked me about the drivers. But hey I made sure that I had the latest drivers installed so that could not be a problem! But who knows what happened (on three different windows machines). So I looked at the drivers in device manager. There are two: the Serial port and Serial Converter driver from FTDI. Both the latest version: 2.08.30
Again Samual pointed out a driver uninstaller that works great:
Or do it manual:
I decided to uninstall the drivers and try the “older” ones (2.08.28).
Now there this is the tricky part. First you need to uninstall (from within the device manager) the drivers and make sure you also remove the files. There is a checkbox you need to check! Somehow I installed the the drivers two times and to make sure the were gone to I had to check “show hidden drivers” under view. And remove them also. Almost there! If you are like me you have a download or driver installation directory. Delete the 2.08.30 installation drivers or windows will look in there and will use those again.
Anyway, Installed the 2.08.28 drivers from the FTDI download page and then started a putty session. Checked COM port, Baud Rate and and and…YES! Putty and the Bus Pirate worked! I also did the same on the win7 and win Vista machines and same thing. a Working connection between the machine and the bus pirate.
Now, I still think its strange that the latest drivers from FTDI wont work with the Bus Pirate.. But I am glad that this worked.
The folks at Seeed were happy to know that this might be the solution for some of us that write them that their Bus Pirate is bricked, DAO or broken.
In the long run I learned a lot about the Bus Pirate, reading the wiki and learning from the folks at the forum. You can do a lot with this tiny gem.