Hello,
FlexSPI-1 and FlexSPI-2 connect one HyperRAM each and it can build a 16bit data bus, but 4bit-SPI flash will be connected to the low-speed interface.
I don't find this implementation very useful since the performance that you will have while doing XiP will be very poor.
FlexSPI-1 use Qspi FLASH as normal and use FlexSPI-2 to connect 2ea 8bit HyperRAM chipsets. how can make up data bus up to 16 bit or more than 16bit (like 32bit or 64 bit)?Flexspi2.A_DATA[0:7] + Flexspi2.B_DATA[0:7] connect to two DQ[0:7] of HyperRAM?
This implementation seems to be the way to go. You can take advantage of the 2 FlexSPI interfaces that the RT1170 has. This way, you can connect the QSPI memory to one FlexSPI and the HyperRAM to the other one. It's not possible to connect 32-bit or 64-bit memories through the FlexSPI interface. In section 30.3.1 of the reference manual, you will find the connections that you can make in a FlexSPI interface.
How about other controllor pin to connect?
As mentioned in the last question, the best approach will be that you connect the QSPI memory to one interface and the HyperRAM to the other. I recommend you to check the following application note. Although this document is for the RT150, the same principles apply to the RT1170, but there's one difference. Since the RT1050 only has one FlexSPI interface, if you want to use the HyperRAM instead of the Hyperflash, you need to remove the Hyperflash. This is not the case for the RT1170 since you have two interfaces.
Regards,
Victor