Hello,
I need to use FlexSPI2 bus on my iMXRT1170 for generic SPI communication with another completely different device. From looking around, this seems to be possible since the type of communication I will be doing only requires transmission one way at a time. However, I have no clue where to start writing a driver for this. I am using Zephyr in my project but I have not found a driver for this purpose and some older threads on the Zephyr project seem to agree and have voiced that there should exist NXP drivers for this purpose. If there are drivers and I have missed them, please point them out.
I have looked at the flexspi_nor_polling_transfer example, but I can't quite make out how I would initiate a write or read operation. I've found recommendations against this idea and to use an LPSPI bus instead, however, this is not an option as the only routed signals on my board are the FLEXSPI2 signals. Similarly, the posts I've found recommending LPSPI instead of FLEXSPI haven't given any points on how one would create a driver for this. The device I'm trying to communicate with is also an off-the shelf product which I cannot reprogram to act as a flash-memory.
To conclude, I am a bit lost in this process and some pointers on where to start would be highly appreciated.
Thank you in advance.