Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPI protocol snooper #2

Closed
GoogleCodeExporter opened this issue Feb 28, 2016 · 11 comments
Closed

SPI protocol snooper #2

GoogleCodeExporter opened this issue Feb 28, 2016 · 11 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

Added configurable edge select and detect. No resync command (later?)

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

  • Changed state: Verified

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Done

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: Type-Defect
  • Removed labels: Type-Enhancement

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant