I have converted SDK example to use FLEXIO as SPI Master implementation (in addition to regular LPSPI),
and extended/modified the example for MaaxBoard-RT:
It demonstrates how to use FLEXIO to implement a SPI Master device and receive on LPSPI2 as slave (loopback test).
ATTENTION: the Debug UART is LPUART6 (LPUART1 pins are needed for LPSPI2 Slave).
The project is here:
With default clock config it works up to 47 MHz, with modified clock config (other and faster PLL for FLEXIO2) up to 258 MHz - impressive.
FLEXIO is a very powerful and flexible block in MCU in order to implement your own or additional interfaces, such as SPI, I2C, LIN, SingleWire, ...
I want to use in order to implement a QSPI interface.