Hi,sir
I am interested in establishing communication between two RT1052s using the FlexSPI interface. I am unsure about its feasibility, especially considering that the RT1052 is commonly employed for data interaction with an external slave SPI device.
How can one differentiate between master and slave when both devices are RT1052? Additionally, what measures should be taken to ensure accurate reception of data from the SPI?
已解决! 转到解答。
FWIW, I don't believe that the FlexSPI interface is designed for communication between multiple MCUs. The reason is, it always operates in master mode. It doesn't have a "slave mode" where it would wait for clocks from another device and shift data in. So, if you were to just hook two MIMXRTs' FlexSPIs together, there would be no way to put one of them in receive mode and have it receive a clock from the other chip.
If you wish to transfer data between two processors, there are several options available that likely will work better. Using regular SPI (via the LPSPI peripheral), with one MCU configured as a master and another as a slave, would work fine. Another option would be UART -- with a high clock speed and a DMA buffer backing it, URT can actually move lots of data very quickly.
FWIW, I don't believe that the FlexSPI interface is designed for communication between multiple MCUs. The reason is, it always operates in master mode. It doesn't have a "slave mode" where it would wait for clocks from another device and shift data in. So, if you were to just hook two MIMXRTs' FlexSPIs together, there would be no way to put one of them in receive mode and have it receive a clock from the other chip.
If you wish to transfer data between two processors, there are several options available that likely will work better. Using regular SPI (via the LPSPI peripheral), with one MCU configured as a master and another as a slave, would work fine. Another option would be UART -- with a high clock speed and a DMA buffer backing it, URT can actually move lots of data very quickly.