Git Product home page Git Product logo

flipper_serprog's Introduction

flipper_serprog

A serprog-based SPI programmer to be used in conjuction with flashrom for the Flipper Zero.

Wiring guide

PA6 -> MISO PA7 -> MOSI PA4 -> CS PB3 -> SCK 3.3V -> VCC

Note that depending on your SPI chip, additional pins might need to be held high (ideally via pull-up resistors, or bridged to the 3v3 rail). This applies to i.e. the /HOLD and /WP pins in Winbond chips.

If the target device is attached to via a SOP8 clip, it is recommended that the device is attached and the connections verified while the Flipper Zero is turned off. Fluctuations in the power use of the 3v3 rail on the Flipper Zero might otherwise cause issues (such as the SD card interface being unavailable until the device is restarted).

Usage

Use flashrom to interface with the Flipper Zero via USB. Note that flipper_serprog makes use of the secondary VCP channel by default, meaning that the serprog interface will appear under a different tty number on the Flipper.

This behaviour can be amended by changing "USB_VCP_CHANNEL" in the source code to 0 and re-compiling. Do note that the standard Flipper RPC interface will be unavailable while flipper_serprog is running if this is done.

Example: flashrom -p serprog:dev=/dev/tty.usbmodemflip_<flipper_name>3 -r spi.bin

flipper_serprog's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar psychotropos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.