I would like to add the configuration:
baudRate: 400000U,
inputClock: 40000000U,
driverType: FLEXIO_DRIVER_TYPE_DMA,
flexio_spi_transfer_bit_order_t: FLEXIO_SPI_TRANSFER_MSB_FIRST,
flexio_spi_transfer_size_t: FLEXIO_SPI_TRANSFER_2BYTE,
CLK_POL: CPOL_0;
CLK_PHA: CPHA_1 ;
SCK timer config : FLEXIO_TIMER_DISABLE_TIM_CMP(3)
MasterBugffer: Size 6 bytes
masterBuffer[0] = 0x06;
masterBuffer[1] = 0x14;
masterBuffer[2] = 0xF0;
masterBuffer[3] = 0x01;
masterBuffer[4] = 0x01;
masterBuffer[5] = 0xF4;
for(cnt=0; cnt< uBufLen; ++cnt)
{
FLEXIO_SPI_DRV_MasterTransfer(&SpiflexioStateMaster, &masterBuffer[0], NULL, 2);
}
Following are the observations:
We have noticed that for 2 byte transmission(as per DMA configuration) is successful only for 2 bytes.
However, we could not notice the transmission for next consecutive remaining bytes.
Also, the way in single byte transmission we have noted DMA call back function being called is missing after updation of the DMA transfer size.
To be clear, after 2 byte transmission(as mentioned above) DMA call back function has missed thus I think further bytes are not processed for transmission.
while, when we changed to transfer_size_t: FLEXIO_SPI_TRANSFER_4BYTE,, SPI_ENABLE is not going low.
We would like to know the missing configuration, such that DMA transfer is applicable for 128 bytes with Slave select low, through out the transmission, under single transfer.
Kindly share your inputs.
Regards,
Jayakumar Appari.