I deploy an application with imxRT1062 with 2 Flash device. One connected to FLEXSpiA port A1 (is used to code storage and running) and the second to FLEXSpiB port B1 (data storage).
I have follow this topic https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Using-2nd-flexSPI-not-boot-device-to-store-NVM-d... and I change this define:
#define EXAMPLE_FLEXSPI FLEXSPI2
#define FLASH_SIZE 0x400000 /* 32Mb/4MByte */
#define EXAMPLE_FLEXSPI_AMBA_BASE FlexSPI2_AMBA_BASE
#define FLASH_PAGE_SIZE 256
#define EXAMPLE_SECTOR 20
#define SECTOR_SIZE 0x1000 /* 4K */
#define EXAMPLE_FLEXSPI_CLOCK kCLOCK_FlexSpi2
#define FLASH_PORT kFLEXSPI_PortB1
#define EXAMPLE_FLEXSPI_RX_SAMPLE_CLOCK kFLEXSPI_ReadSampleClkLoopbackFromDqsPad
I can't read and write data to portB1. I use eaimxrt1062_flexspi_nor_polling_transfer example
with this config:
Nothing signal (DATA, SCK, CS) active. I've checked the correct pin configuration.
Is it possible use two FLEXSPI at same time?
Hi @Maurizio2 ,
Thank you so much for your interest in our products and for using our community.
Question: Is it possible use two FLEXSPI at same time?
Answer: Yes, it is possible.
Please refer to the following link, this application note is highly relevant to your needs.
https://www.nxp.com/docs/en/application-note/AN12564.pdf
Please carefully check the pin and clock configuration of flexspi, as well as the settings of the LUT table.
Wish it helps you.
If you still have question about it, please kindly let me know.
Best Regards
MayLiu