GithubHelp home page GithubHelp logo

cmcquinn / logic2-spiflash Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adafruit/logic2-spiflash

0.0 0.0 0.0 174 KB

Basic SPI Flash command decoder for Saleae Logic 2

License: MIT License

Python 100.00%

logic2-spiflash's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.