Hacker News new | ask | show | jobs
by peter_d_sherman 886 days ago
Looks very cool. Wishing you a lot of luck in this endeavor!

A few quick questions:

1) Max data acquisition speed?

2) Max data buffer?

3) Are start/stop triggers available? (i.e., start buffering data when you see a specific binary string, stop after say 4K, 8K, 16K, etc. or when secondary binary string is seen, or start/stop when other conditions are true, etc.)

4) Max speed talking to host PC (not the chip or circuit being debugged) -- How fast?

5) Max continuous data streaming speed to host PC? (As opposed to buffering in local RAM? So data from Debug Chip or Circuit -> BusPirate -> Host PC... how fast (max sustainable speed) if continuous?)

Anyway, looks very cool!

1 comments

It's a RP2040 don't expect an amazing performance or throughput.

2) RP2040 has 264kB of RAM, and a portion of it will be used by software. 3) Looking at the docs, seems like you either use dedicated protocol modes in which case you more or less get read bytes/write bytes commands. Or if you flash a one the RP2040 logic analyzer firmware ports you will likely only get basic edge/level triggers with all the protocol decoding happening in Sigrok on the computer. Some parts of docs mention macros which might be used for more complex interactions, but there are barely any details. 4/5) In the best case limited by USB FS speed 12Mbit/s (not even USB 2.0 HS) but I wouldn't be surprised if it was in many cases worse

Overall it's a jack of all trades master of none type of deal.

If you want a moderately performant logic analyzer, get a logic analyzer.

Hi Karliss -- thank you for responding to my inquiry!

>It's a RP2040 don't expect an amazing performance or throughput.

In reading the "The Bus Pirate v5 Saga" (AKA the history of how the Bus Pirate was developed, including previous versions): https://buspirate.com/coming-soon/ -- yes, apparently the main CPU/microcontroller is a RP2040 -- that's apparently because other/previous microcontrollers turned out to have sourcing issues.

2) The RP2040 has 264kB of onboard RAM, that's true -- but apparently there is additionally a 128Mbit Flash RAM and 1Gbit NAND Flash RAM (https://hardware.buspirate.com/components/chips). I'm guessing that one of those could be used for data buffering -- although I am still uncertain as to the exact data rate... Would it be slower than the fastest logic analyzer? Probably. But I'd still value knowing that exact rate...

Not all applications require the fastest of the fast data rates (JTAG debugging at 115kbps, or slower, for example).

3) Thank you, good information!

4/5) Quite possibly true -- but again, I'd value knowing the exact max speed.

>If you want a moderately performant logic analyzer, get a logic analyzer.

Agreed -- but at $37.85 (https://dirtypcbs.com/store/designer/details/ian/6633/bus-pi...) -- for low-speed and JTAG debugging, it might be quite the deal!

Apparently low-end 100Mhz Arm+FPGA-based logic analyzers on EBAY (from China) start at $55 (at the point in time I am writing this, the price may of course fluctuate over time) but of course, the same questions as I raise with respect to the BusPirate also apply to all that's available on EBAY...

Also, apparently (https://buspirate.com/coming-soon/) an ICE40 FPGA was to be part of a previous BusPirate version in 2018:

>"2018 Bus Pirate gets an FPGA - An ICE40 FPGA is bolted onto the ARM, giving total flexibility over pin assignments, a fast logic analyzer and more."

But apparently that idea was scrapped due to chip sourcing issues...

Anyway, while definitely not a high-end logic analyzer, for $37.85 it looks experiment-worthy...