ddworken / the-bus-pirate

Automatically exported from code.google.com/p/the-bus-pirate
Other
0 stars 1 forks source link

SPI protocol snooper #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This can be implemented by using the hardware SPI slave mode. 

The primary challenge is buffering incomming data while the Bus Pirate
converts the raw value into ASCII for the terminal. This will probably
require reconfiguring the UART and SPI to use their buffers, and using
interrupts to move bytes from the SPI slave buffer to a larger processing
buffer.

Original issue reported on code.google.com by ianles...@gmail.com on 31 Mar 2009 at 2:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Add a macro to the SPI library that reads activity from a bus and prints it to 
the
terminal until stopped with escape.

Original comment by ianles...@gmail.com on 31 Mar 2009 at 2:19

GoogleCodeExporter commented 9 years ago
Macro added, setup and teardown functions added. For some reason it doesn't 
work yet
(probably setup value). 

Original comment by ianles...@gmail.com on 5 Apr 2009 at 5:51

GoogleCodeExporter commented 9 years ago

Original comment by ianles...@gmail.com on 5 Apr 2009 at 5:51

GoogleCodeExporter commented 9 years ago
Fixed pin assignment problem. Bus sniffer works. According to errata, CS filter
doesn't work in rev 3 silicon. Workaround is to watch (poll) the PORT pin and 
wait
for correct CS direction change (this also allows directional configuration). 

Need to add: 
CS filter routine,
Configurable CS edge select,
resync command for no filter mode (?)

Original comment by ianles...@gmail.com on 6 Apr 2009 at 6:57

GoogleCodeExporter commented 9 years ago
Added configurable edge select and detect. No resync command (later?)

Original comment by ianles...@gmail.com on 6 Apr 2009 at 7:42

GoogleCodeExporter commented 9 years ago

Original comment by ianles...@gmail.com on 6 Apr 2009 at 7:43

GoogleCodeExporter commented 9 years ago
Need to put second SPI hardware module on the MOSI pin so it snoopes data in 
both
directions.

Original comment by ianles...@gmail.com on 11 Apr 2009 at 9:46

GoogleCodeExporter commented 9 years ago

Original comment by ianles...@gmail.com on 11 Apr 2009 at 9:49

GoogleCodeExporter commented 9 years ago

Original comment by ianles...@gmail.com on 14 Apr 2009 at 11:43

GoogleCodeExporter commented 9 years ago

Original comment by ianles...@gmail.com on 14 Apr 2009 at 11:43