Hello everyone:
Recently I am researching on S32K142 flexio SPI configuration, master mode.
Following configuration of demo example, FLEXIO_SPI_DRV_MasterInit is always return ERROR. Does anyone knoes why and how could I solve it?
Details as follows:
1. Background
mcu: S32K142_64
IDE: S32 Design Studio V2.2
SDK version: RTM 3.0.0
2. Configuration
2.1 PinSettings:

2.2 FlexIO spi configuration

3. Code implementaion:
flexio_device_state_t flexIODeviceState;
flexio_spi_master_state_t flexIOSPIState_Master;
FLEXIO_DRV_InitDevice(INST_FLEXIO_SPI1, &flexIODeviceState);
FLEXIO_SPI_DRV_MasterInit(INST_FLEXIO_SPI1, &flexio_spi1_MasterConfig0, &flexIOSPIState_Master);
4. Question:
4.1
when I debug to FLEXIO_SPI_DRV_MasterInit-->FLEXIO_DRV_InitDriver-->FLEXIO_DRV_Allocate
FLEXIO_DRV_Allocate is always return ERROR. Regiater PARAM is all zero, It seems no shifter and timer resource is available for my configuration.
Any one knows why?
4.2
And when I try to use FLEXIO_SPI_DRV_MasterTransferBlocking to send some dummy spi data, master->driverIdle is always TRUE, NO any signal according to scope. I dont know if it is related with 4.1 question?
Anyone help me? thanks a lot!