Skip to content

Allow SPI flash to be configurable per board #11926

@victorallume

Description

@victorallume

I'm using a SPI flash chip* on a custom board that turns out to have a slightly different process to enable Quad-SPI mode than drivers/memory/spiflash.c - in my case, the two bytes of the status register need to be written as two separate operations, rather than a single operation with two bytes. More generally, other SPI flash chips may have different opcodes again. So it would be useful to have the chip initialisation either configurable in mpconfigboard.h, or alternatively, having different spiflash driver files for different chips, and be able to specify which driver in the board config. Any thoughts about the best approach here?

* The AT25SF321, which, on the surface seems much the same as the AT25SF641 on the PYBD (including the SR write operation), and the datasheets says this as well, but turns out the AT25SF321B (note the B on the end) has the split SR write operation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature requests, new feature implementations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy