Hi and thanks for the answer. It has been a while and the scope has changed a bit. The plan is now to use 2 identical 32MB flash chips located to the FlexSPI controller A (as A1 and A2). Additionally We would like to have a 1MB PSRAM connected to FlexSPI B(1).
The intention is to run A1 as XIP. A2 will be used as data flash, i.e. it will not contain code. What would be the best approach to set this up?
I assume I can only set up the configuration of the A1 device in the configuration at flash start address (setup by boot rom) and that second flash (A2) and PSRAM (B1) needs to be configured during execution, right?
What would be the best way to set-up A2 and B1? Should I use the FLEXSPI SDK driver for this and how would that look like?
I also found a fsl_flash_nor driver in the SDK. Should I use that for A2?
It seems like a pretty trivial thing, but I don't really know where to start?
Any help is appreciated.
Best regards, Lars-Henrik