SPI not working on BP v4?
Hi everyone.
I got the Bus Pirate v4 board this Christmas. I wanted it mainly for SPI programming with avrdude (under Linux). I might be doing something wrong, but it seems that SPI is not working as it should (or not at all).
As I try running arvdude with avrdude -c buspirate -P /dev/ttyACM0 -p m128 -v -v, it halts at
Detecting BusPirate...
avrdude: buspirate_send_bin():
0x23 0x0a
and at that moment, I see from the logs that the device disconnects and immediately reconnects, this time as /dev/ttyACM1 (also, avrdude begins to consume 100% of one CPU core) . Reconnecting Bus Pirate does not help, since the device node /dev/ttyACM0 does not get freed until avrdude exits/gets killed.
So I decided to test if everything is OK on the Bus Pirate's side and it seems it isn't. I'm not sure if that is the cause, but BPv4 does not bring 5V and 3.3V lines up. Here's the terminal communication log:
i
Bus Pirate v4
Firmware v6.0-a3
DEVID:0x1019 REVID:0x0003 (24FJ256GB106 A5)
http://dangerousprototypes.com
HiZ>m4
...
(using all the defaults and output type "Open drain")
...
Ready
SPI>W
VREG too low, is there a short?
Power supplies OFF
SPI>P
Pull-up resistors ON
Warning: no voltage on Vpullup pin
SPI>W
VREG too low, is there a short?
Power supplies OFF
When I check the voltages, they are at 0. If I select "Normal" output type instead of "Open drain", VPU goes to 0.42V after switching on the pull-up resistors, but all the rest is the same.
Should I get Vreg up by some other command or hardware intervention? Or maybe this is an expected behavior? If so, how do I get SPI to work with avrdude?