Giter Site home page Giter Site logo

argon-driver's Introduction

ARGON - SPI NOR Flash programmer & reader

◾ About the project

Argon project consists of two parts:

This driver can be used both with Argon board or any FTDI-based board with SPI flash attached.

Tested with N25Q, S25FL512S and Winbond W25Q flashes.

Remember: different flashes can have various command addresses. If a command does not work on your flash device, there can be two reasons: it can have different address on this particular flash or your flash doesn't support this particular command at all. When in doubt, look into datasheets.

◾ Running software

First, download FTDI drivers from their website and make sure your Argon or another FTDI-based flash reader is properly visible in the Device Manager.

There are two execs included in releases section:

  • argon.exe - manual command line interface (handy on flash debugging)
  • argon_cli.exe - CLI for automation (run argon_cli.exe --help for usage hints). Example usage: argon_cli.exe list, argon_cli.exe --serial FT613ZHMA read_id

Argon executables were tested on Windows 10 and 7. For other systems, you would have to build it by yourself.

◾ Building software

Prerequisites

  • MinGW/MS Visual C++
  • Optionally: FTDI drivers (if not provided, will be downloaded automatically)
  • Optionally: local-example.cmake - filled with proper FTDI drivers path and copied to folder .local with a name local.cmake

Building

  • in build directory:
    • when using local.cmake: cmake.exe -DCMAKE_BUILD_TYPE=Debug -DLOCAL_CFG=[project path]/.local/local.cmake [project path]
    • without local.cmake: cmake.exe -DCMAKE_BUILD_TYPE=Debug [project path]
  • in build directory: cmake --build .

Contributors

◾ Supported commands

  • Read JEDEC ID
  • Read REMS
  • Read SFDP
  • Read status registers (all 4)
  • Read status flag
  • Address write
  • Memory read
  • Chip erase

◾ TODO

Commands:

  • Erase range
  • Erase sector
  • Write from file
  • Custom command

◾ Known issues

No known issues. If you find any - PRs are welcomed :)

argon-driver's People

Contributors

alicjamusial avatar novakov avatar pszem0c avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

pszem0c

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.