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?
Solved! Go to Solution.
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.
Hi @jiaxin
Unfortunately, FlexSPI is not designed for communication between MCUs. UART is generally used for communication between MCUs.
Hope this will help you.
BR
Hang
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.
Is there anyone available to assist with this matter, or do you require additional information?