Hi,
according to the post "FlexSpi NOR and NAND Flash Configuration" https://community.nxp.com/thread/534700, we have to switch the position of the NAND flash from port B1 to port A2. We have all the available pins in use and it's not enough. We have to use a port expander in addition. The next hardware revision will have the NOR flash at port A2, if it is possible.
In my opinion, when I switch the NAND flash to port A2, I have to change the associated pins and NAND flash functions to port A2. Now both flashes use the same port. The execute in place will (xip) operate on the NOR flash and our function calls will read data like images from NAND flash.
We use the same flash timings for NOR and NAND flash according to the application note https://www.nxp.com/docs/en/application-note/AN12564.pdf within the section "3.1 Multiple flash implementing RWW". The flexspi_device_config_t structure is the same for NOR as for NAND flash. From the perspective of the Flexspi controller, there are two identical flash devices that meet the timing constraints. The configuraiton is available in this thread FlexSpi NOR and NAND Flash Configuration.
Is it possible to connect our NAND flash to the same port A as the NOR flash?
What additional changes do I have to take into account especially for Flexspi module initialization (FLEXSPI_Init), if it is possible to use port A for both flash devices?
Thank you in advance,
Patrick
Hello Patrick,
Hope you are doing well.
Yes, you are able to connect two flash devices to port A. Please review section 27.5.3 of the reference manual here it is described the considerations to take when connecting two flash devices. There are two FlexSPI interface ports (A port and B port). Each port supports 2 flash devices by providing 2 chip select outputs.
Based on your previous thread your timings are fine, since they should both be working with the same configurations in order for both of them to be attached to the same port.
In addition, I'd recommend to check this post that answers some questions that come up with this configuration.
https://community.nxp.com/message/1274847
Best Regards,
Sabina
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------