GithubHelp home page GithubHelp logo

xielinbo85 / spi-nand-prog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 981213/spi-nand-prog

0.0 0.0 0.0 56 KB

A SPI-NAND flash programmer botched together using kernel SPI-NAND framework. Works with stm32-vserprog or WCH CH347.

C 99.51% CMake 0.49%

spi-nand-prog's Introduction

SPI-NAND Programmer

About

A SPI-NAND flash programmer software botched together using SPI-MEM and SPI-NAND framework taken from Linux v5.8.

Features

  • Reading/Writing SPI NAND
  • Operations with on-die ECC enabled/disabled
  • Operations with OOB data included or not
  • Skip bad blocks during writing
  • Data verification for writing when on-die ECC is enabled

Supported devices

WCH CH347

The default driver. No extra arguments needed.

dword1511/stm32-vserprog

add the following arguments to select this driver:

-d serprog -a /dev/ttyACM0

Usage

spi-nand-prog <operation> [file name] [arguments]

Operations: read/write/erase/scan
Arguments:
 -d <driver>: hardware driver to be used.
 -a <arg>: additional argument provided to current driver.
 -o <offset>: Flash offset. Should be aligned to page boundary when reading and block boundary when writing. default: 0
 -l <length>: read length. default: flash_size
 --no-ecc: disable on-die ECC. This also disables data verification when writing.
 --with-oob: include OOB data during operation.

spi-nand-prog's People

Contributors

981213 avatar hanwckf avatar

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.