AnsweredAssumed Answered

Multi-byte SPI transfer possible using KSDK fsl_spi driver?

Question asked by DAVE REA on Aug 11, 2015
Latest reply on Dec 9, 2015 by Cody Lundie

I'm trying to perform a multi-byte SPI transfer using the KSDK 1.2.0 "fsl_spi" component, as follows:


  uint8_t sleepStringOut[] = {0x02 /* WRITE */, 0x0F /* ADDR = CANCTRL */, 0x20 /* REQOP = 0b001 */};   uint8_t sleepStringIn[] = {0x00, 0x00, 0x00};   spi_status_t result;    result = SPI_DRV_MasterTransferBlocking(SPI0_IDX, NULL, sleepStringOut, NULL, 3, 10000);   if(kStatus_SPI_Success != result)   {    for(;;) { /* Trap */ }   }


Looking at the SPI bus on a logic analyzer, the driver de-asserts the slave select line between each byte of the transfer:


Is it possible to configure this driver to perform a multi-byte SPI transfer without de-asserting slave select between bytes?