Skip to main content
Topic: 2 errors on self test (Read 2015 times) previous topic - next topic

2 errors on self test

I ran a self test and got 2 errors. See below? I put jumpers on 3v3, ADC and +5V, VPU
Is my Bus Pirate broken?

HiZ>~
Disconnect any devices
Connect (Vpu to +5V) and (ADC to +3.3V)
Space to continue
Ctrl
AUX OK
MODE LED OK
PULLUP H OK
PULLUP L OK
VREG OK
ADC and supply
5V(4.90) OK
VPU(4.95) OK
3.3V(3.36) OK
ADC(3.24) OK
Bus high
MOSI OK
CLK OK
MISO OK
CS OK
Bus Hi-Z 0
MOSI OK
CLK FAIL
MISO FAIL
CS OK
Bus Hi-Z 1
MOSI OK
CLK OK
MISO OK
CS OK
MODE and VREG LEDs should be on!
Any key to exit
Found 2 errors.

Bus Pirate v3b
Firmware v5.10 (r559)  Bootloader v4.4
DEVID:0x0447 REVID:0x3046 (24FJ64GA002 B8)
http://dangerousprototypes.com

Re: 2 errors on self test

Reply #1
Can you update the firmware and run it again?

Re: 2 errors on self test

Reply #2
I have updated the firmware and have the same result.

HiZ>~
Disconnect any devices
Connect (Vpu to +5V) and (ADC to +3.3V)
Space to continue
Ctrl
AUX OK
MODE LED OK
PULLUP H OK
PULLUP L OK
VREG OK
ADC and supply
5V(4.90) OK
VPU(4.94) OK
3.3V(3.19) OK
ADC(3.32) OK
Bus high
MOSI OK
CLK OK
MISO OK
CS OK
Bus Hi-Z 0
MOSI OK
CLK FAIL
MISO FAIL
CS OK
Bus Hi-Z 1
MOSI OK
CLK OK
MISO OK
CS OK
MODE and VREG LEDs should be on!
Any key to exit
Found 2 errors.
HiZ>i
Bus Pirate v3.5
Firmware v6.2-beta1 r1981  Bootloader v4.4
DEVID:0x0447 REVID:0x3046 (24FJ64GA002 B8)
http://dangerousprototypes.com

Re: 2 errors on self test

Reply #3
Hmm, can you manually turn MISO and CLK on/off in normal mode and measure it? They seem to be stuck at high, do you see any shorts on the board?

Re: 2 errors on self test

Reply #4
I am new with the Bus Pirate. How can I manually turn MISO and CLK on/off in normal mode?
BTW I don't see any shorts on the board.

Re: 2 errors on self test

Reply #5
OK, here is what I did: There is no command to toggle MISO in user mode (as it's an input pin) so I used bitbang mode with Hercules. Here is a screenshot:
[attachment=0]

And here is the explanation:
1) Sent 20 0x00 commands to enter bitbang mode. Under send menu, 1st row does that. Response is BBIO1, that confirms that you're in bitbang mode.
2) Right click the "Received/Sent data" area and click "HEX Enable". This way you can see the response in hex, otherwise you may get strange characters.
3) Sent 0x40 (2nd row under send), this configures all pins as output. Here is the reference.
4) Sent 0x80 (I used the 3rd row for these values), this means all output is low. Response is in black and 0x80, confirming it. Check the next function on the page I linked to.
5) Sent 0xff, this means all output high. Response came in red this time and it's 0xff, confirming it.
6) Sent 0x80 again to put them in a known state. Response is in black and 0x80, confirming it.
7) Put a jumper between CLK and GND pins.
8) Sent 0xff, this means all output high. Response came in black and it's 0xfb. This means CLK pin is low. Did this twice.
9) Removed the jumper and sent 0xff again. Response came in red and it's 0xff, so problem solved.

I turn on pullups but there is no jumper between VPU and any other power pin, so it doesn't matter. This way I can test the 3.3 V output response of all pins.