-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
External flash driver for the MX25Rxx #9873
Comments
Hi, any update on this issue? |
Copying @kl-cruz who has more details on this flash. |
Hi, In the simpliest way it looks like we will require to implement shim for flash API (https://github.com/zephyrproject-rtos/zephyr/blob/master/include/flash.h). API seems to fit ideally to the nrfx driver. Protocol configuration (I mean one/two/four data lines) should be placed in device tree. We should consider to place protocol configuration (op codes) in Kconfig. They are (in many cases, for example switch to quad-mode) chip-dependent. XIP function in nRF SoCs require only to configure QSPI peripheral and then access to flash is possible at addresses started from 0x12000000 to 0x19FFFFFF. So... it should work as a side effect |
Hi, The QSPI part is not really what we want for now, as we don't have code in the external flash. Did Nordic developped a driver for the MX25Rxx when creating the nrf52 PDK? Could it be easily ported using the Zephyr API? Regards |
Hi, |
@nvlsianpu yes, it is. #7561 contains code to read sfdp data to configure transmission protocol correctly and code to drive external memory. It should work with nRFs, but to speed up operations I recommend to read sfdp data using SPI and switch to QSPI in flash API. |
@kl-cruz |
QSPI based driver Introduced as Nordic QSPI nor driver (usage examples tests/subsys/fs/littlefs on nrf52840_pca10056). Also possible to use spi nor driver. |
Hi,
The Nordic nRF52840 PDK has an external flash built-in, connected to the nRF52840 by QSPI.
The driver is available using the nordic SDK, but it's not in Zephyr yet.
Has anybody already ported this driver on Zephyr, or @carlescufi does the Nordic team plan to do so?
We do not need a XIP-enabled driver, we just want to read-write on the flash.
Regards
The text was updated successfully, but these errors were encountered: