Code Monkey home page Code Monkey logo

rust-flashrom-programmer's Introduction

Flashrom serprog compatible programmer writter in Rust

Features

  • Support for SPI flash programming
  • Works on Nucleo-L476RG board
  • Capable of stable communication at 921600 UART baud rate and 10 MHz SPI frequency
  • Supports disabling of output driver so you don't have to disconnect the programmer to boot the platform

Building and running

Currently, only Nucleo-L476RG is supported, in the future, other boards as well as non-ST platforms may be added.

If you don't have Rust already, install it from rustup.rs.

Connect Nucleo and type cargo run to build and upload app to the device.

Using the programmer

Programmer-host communication works through ST-Link serial port (USB-to-Serial function available on all Nucleo boards).

Following pins are used (you can refer to Mbed OS documentation for pinout)

PIN Function
PB13 SCK
PB15 MOSI
PB14 MISO
PB1 CS#
PB2 POWER

Note: POWER pin generally shouldn't be used for powering SPI flash directly but for controlling an external power source. Maximum power draw of Nucleo pins is limited to 20mA.

Example usage:

flashrom --progress -p serprog:dev=COM12:921600 -r bios_backup.rom
flashrom --progress -p serprog:dev=COM12:921600 -w coreboot.rom

rust-flashrom-programmer's People

Contributors

arturkow2000 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.