I have a board with a single flash device connected to the QuadSPI Bus Flash B. I'm using the FSL_QSPI driver. I have started from the qspi_polling example of the FRDM-K82F board and I have modified the flash configuration section in order to consider only the flash device on the B side:
qspi_flash_config_t FlashConfig = {.flashA1Size = 0,
.flashA2Size = 0,
#if defined(FSL_FEATURE_QSPI_SUPPORT_PARALLEL_MODE) && (FSL_FEATURE_QSPI_SUPPORT_PARALLEL_MODE)
.flashB1Size = FLASH_SIZE, /* 16MB */
.flashB2Size = 0,
#endif
#if !defined(FSL_FEATURE_QSPI_HAS_NO_TDH) || (!FSL_FEATURE_QSPI_HAS_NO_TDH)
.dataHoldTime = 0,
#endif
.CSHoldTime = 0,
.CSSetupTime = 0,
.cloumnspace = 0,
.dataLearnValue = 0,
.endian = kQSPI_64LittleEndian,
.enableWordAddress = false};
The flash chip is an Infineon S25FL128SAGNFI01. The sector size is 256KB, while the page size is 512 bytes. I have also checked that the LUT command codes are the correct ones and any other associated parameter.
Unfortunately I can't read correctly the external flash memory. The read values are inconsistent.
I have read the RM thoroughly, but I can't find were I'm wrong. Could some expert help me finding the right way of using a single flash memory on qspi flash bus B side? Maybe there's something wrong with the memory mapping?
Thank you very much in advance.
Hi
Did you found any soution to this problem?