Skip to main content

PySigrok decoder for multibit SPI flash transactions.

Project description

SPI Flash Analyzer for Logic 2

Box with Discord user count Box with MIT license

This is a basic high level analyzer for Saleae Logic 2 that interprets semi-standard SPI flash commands. The output can be limited by command type and data commands can also be limited by address. One can add the analyzer multiple times to get separate analysis tracks for different types of commands.

Screenshot of the extension

Installation

In Logic 2, click extensions on the right hand side.

To Use

Under the three dot, more menu, click Check for Updates then install the SPI Flash extension.

To Develop

  1. Clone this repo locally.
  2. Under the three dot, more menu, click Load Existing Extension... and then select the local repo location.

Usage

Normal SPI

  1. Click the analyzers tab.
  2. Add a SPI analyzer and configure it for your capture.
  3. Add a SPI Flash analyzer.
  4. Set the SPI analyzer as the Input Analyzer.
  5. Min Address, Max Address and Decode Level are optional.
  6. Change Address Bytes to match

Quad SPI

  1. Click the analyzers tab.
  2. Add a Simple Parallel analyzer. (You may need to search for it.)
  3. Configure it for your capture.
  4. Set D0 to MOSI.
  5. Set D1 to MISO.
  6. Set D2 to IO2 (WP on 8 pin flashes usually.)
  7. Set D3 to IO3 (HOLD on 8 pin flashes usually.)
  8. Set D15 to CS (used to ignore extra clocks.)
  9. Set the clock to the clock pin with the correct edge set.
  10. Add a SPI Flash analyzer.
  11. Set the Simple Parallel analyzer as the Input Analyzer.
  12. Min Address, Max Address and Decode Level are optional.
  13. Change Address Bytes to match

Note: When using Simple Parallel input, it is assumed the CS line goes high between parallel captures that are greater than 4 times the time separation of the closest clocks seen thus far. So, beware of spurious clocks and SPI transmissions that pause between bytes but leave CS low. This analyzer may incorrectly partition the transactions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysigrok-decoder-xspiflash-0.0.1.tar.gz (162.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file pysigrok-decoder-xspiflash-0.0.1.tar.gz.

File metadata

File hashes

Hashes for pysigrok-decoder-xspiflash-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a9d2e4df7a15f1a739b9d3fb2c05755dd4f0adf94cc622959e02339126651d1b
MD5 259cbd6c69776c50c347054c2c3c7cb4
BLAKE2b-256 38b8d9fb5af0a3a0b4759ae8baaf87bd449703d354067297b700703ecab2c2f6

See more details on using hashes here.

File details

Details for the file pysigrok_decoder_xspiflash-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pysigrok_decoder_xspiflash-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c29d3afa73a848072b111a382c6c12aca893e1aa873d5622c6e45e50dddc6fe
MD5 61150a1edd770a4befbcad7b7c787cbe
BLAKE2b-256 0a5726acd0da04d64241d3ff915b57c30b54d7cc932bec61bb2b5992d58e6938

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page