both below two ways are ok, and the 2nd way may be more efficiency
- way1: Connect 2 flash to FlexSPI1 with different chip select
- way2: Use FlexSPI1 and FlexSPI2 for 2 flash.
For memory map (FlexSPI1 - 0x3000_0000; FlexSPI2 - 0x6000_0000):
- way1: Flash1: 0x3000_0000 - 0x3000_0000 + flash1_size
Flash2: 0x3000_0000 + flash1_size - 0x3000_0000 + flash1_size + flash2_size
- way2: Flash1: 0x3000_0000 + flash1_size
Flash2: 0x6000_0000 + flash2_size
If you configures both FlexSPI1 and FlexSPI2, then bootloader can see the entire memory.