diff options
| author | robert-hh <robert@hammelrath.com> | 2025-02-23 16:11:56 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-03-25 12:40:41 +1100 |
| commit | 1398e7fd20ef399a003e4e476eb7726126f42d66 (patch) | |
| tree | 3bbff021a3e01a175637127d21e34d97bd291a9a | |
| parent | 2d20dbce2c4e45123349051dec16e6565fec54ef (diff) | |
mimxrt/hal/qspi_nor_flash_config: Use a safe common CS timing.
The flash devices used by the MIMXRT board are specified either with 3ns or
5 ns CS setup and hold time. Since a single configuration file is used for
all boards, use 5ns instead of 3ns to be safe, even if there were no
problems so far.
Signed-off-by: robert-hh <robert@hammelrath.com>
| -rw-r--r-- | ports/mimxrt/hal/qspi_nor_flash_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/mimxrt/hal/qspi_nor_flash_config.c b/ports/mimxrt/hal/qspi_nor_flash_config.c index 36ccc30fc..0ed1b5032 100644 --- a/ports/mimxrt/hal/qspi_nor_flash_config.c +++ b/ports/mimxrt/hal/qspi_nor_flash_config.c @@ -38,8 +38,8 @@ const flexspi_nor_config_t qspiflash_config = { .tag = FLEXSPI_CFG_BLK_TAG, .version = FLEXSPI_CFG_BLK_VERSION, .readSampleClkSrc = MICROPY_HW_FLASH_DQS, - .csHoldTime = 3u, - .csSetupTime = 3u, + .csHoldTime = 5u, // safe time for all flash devices + .csSetupTime = 5u, .busyOffset = FLASH_BUSY_STATUS_OFFSET, // Status bit 0 indicates busy. .busyBitPolarity = FLASH_BUSY_STATUS_POL, // Busy when the bit is 1. .deviceModeCfgEnable = 1u, |
