| .gitignore | ||
| CODE_OF_CONDUCT.md | ||
| extension.json | ||
| LICENSE | ||
| README.md | ||
| screenshot.png | ||
| SPIFlashAnalyzer.py | ||
SPI Flash Analyzer for Logic 2
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.
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
- Clone this repo locally.
- Under the three dot, more menu, click
Load Existing Extension...and then select the local repo location.
Usage
Normal SPI
- Click the analyzers tab.
- Add a
SPIanalyzer and configure it for your capture. - Add a
SPI Flashanalyzer. - Set the
SPIanalyzer as the Input Analyzer. Min Address,Max AddressandDecode Levelare optional.- Change
Address Bytesto match
Quad SPI
- Click the analyzers tab.
- Add a
Simple Parallelanalyzer or aSimple Parallel w/CSanalyzer. (You may need to search for it.) - Configure it for your capture.
- Set D0 to MOSI.
- Set D1 to MISO.
- Set D2 to IO2 (WP on 8 pin flashes usually.)
- Set D3 to IO3 (HOLD on 8 pin flashes usually.)
- Set D15 to CS (used to ignore extra clocks.) if using
Simple Parallelanalyzer. - OR Set CS to CS if using
Simple Parallel w/CSanalyzer. - Set the clock to the clock pin with the correct edge set.
- Add a
SPI Flashanalyzer. - Set the previous analyzer as the Input Analyzer.
Min Address,Max AddressandDecode Levelare optional.- Change
Address Bytesto match
Note: When using Simple Parallel input, it is assumed the CS line goes high between parallel captures that are greater than 6 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. The Simple Parallel analyzer may incorrectly partition the transactions.
