Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stm32: Add MICROPY_HW_SPIFLASH_ENABLE_CACHE option to eliminate need for 4k SPI cache when not used #6704

Merged

Conversation

dpgeorge
Copy link
Member

No description provided.

When littlefs is enabled extended reading must be supported, and using this
function to read the first block for auto-detection is more efficient (a
smaller read) and does not require a cached SPI-flash read.

Signed-off-by: Damien George <damien@micropython.org>
This only needs to be enabled if a board uses FAT FS on external SPI flash.
When disabled (and using external SPI flash) 4k of RAM can be saved.

Signed-off-by: Damien George <damien@micropython.org>
Mboot builds do not use the external SPI flash in caching mode, and
explicitly disabling it saves RAM and a small bit of flash.

Signed-off-by: Damien George <damien@micropython.org>
@dpgeorge dpgeorge force-pushed the stm32-config-to-disable-spi-cache branch from 30e8e66 to e715a8f Compare December 18, 2020 02:39
@dpgeorge dpgeorge merged commit e715a8f into micropython:master Dec 18, 2020
@dpgeorge dpgeorge deleted the stm32-config-to-disable-spi-cache branch December 18, 2020 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant