Skip to content

Commit 1398e7f

Browse files
robert-hhdpgeorge
authored andcommitted
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 <[email protected]>
1 parent 2d20dbc commit 1398e7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/mimxrt/hal/qspi_nor_flash_config.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ const flexspi_nor_config_t qspiflash_config = {
3838
.tag = FLEXSPI_CFG_BLK_TAG,
3939
.version = FLEXSPI_CFG_BLK_VERSION,
4040
.readSampleClkSrc = MICROPY_HW_FLASH_DQS,
41-
.csHoldTime = 3u,
42-
.csSetupTime = 3u,
41+
.csHoldTime = 5u, // safe time for all flash devices
42+
.csSetupTime = 5u,
4343
.busyOffset = FLASH_BUSY_STATUS_OFFSET, // Status bit 0 indicates busy.
4444
.busyBitPolarity = FLASH_BUSY_STATUS_POL, // Busy when the bit is 1.
4545
.deviceModeCfgEnable = 1u,

0 commit comments

Comments
 (0)