GithubHelp home page GithubHelp logo

Comments (5)

dword1511 avatar dword1511 commented on July 26, 2024

flashrom currently does not support 4-byte addressing as far as I known. There were patches proposed but they are probably unmerged.

from stm32-vserprog.

eswierk avatar eswierk commented on July 26, 2024

I've managed to get a flashrom with those patches working well enough to program an N25Q256A using an FT232H module, but it's awfully slow.

https://github.com/skyportsystems/flashrom/commits/master

from stm32-vserprog.

eswierk avatar eswierk commented on July 26, 2024

It is possible to program N25Q/MT25QL chips larger than 16 MB with the existing flashrom serprog, using only commands with 3-byte addresses, plus the extended address register for the 4th byte. See https://github.com/skyportsystems/flashrom/commit/60b1084b for an example.

Other chips may require native 4-byte addressing, but I haven't encountered them so far.

from stm32-vserprog.

dword1511 avatar dword1511 commented on July 26, 2024

With a proper patch for flashrom, any serprog should be able to handle 4-byte addressing. It is merely an SPI-to-USB bridge. It has no knowledge about the protocol. The commands with address parameters in serprog protocol are for parallel flash chips. The only limitation for serprog with SPI is that the size of each transaction (command or data) must be under 16MB.

from stm32-vserprog.

eswierk avatar eswierk commented on July 26, 2024

Ah! Thanks for the clarification. I confirmed that programming an M25QL256 with flashrom serprog works with direct 4-byte address commands. See https://github.com/skyportsystems/flashrom/commit/d30fcd40 .

from stm32-vserprog.

Related Issues (20)

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.