In fsl_dspi_cmsis.c, the CS works as expected if I append PcsContinous as below:
static int32_t DSPI_EdmaTransfer(const void *data_out, void *data_in, uint32_t num, cmsis_dspi_edma_driver_state_t *dspi)
{
....
xfer.configFlags = kDSPI_MasterCtar0 | RTE_SPI0_MASTER_PCS_PIN_SEL | kDSPI_MasterPcsContinuous;
...
}
But this solution needs to change standard FSL K64 SDK... , and to make my code work, I have to tell build engineer to change their SDK file also. Any better way to manager this?
This fsl_dspi_cmsis driver should allow application to pass the flags down to it for flexible control.
Kevin