Hi,
During usecases debug, I found the KW38 chip board can not communication with NCJ38A by SPI interface. Current the SPI config is using SPI0(0x4002C000u), master mode, clock freq is 500kHz, 8bits/frame, MSB first, blocking transfer data using polling. I check the sending data already in PUSHR, but the reading data is 0xFF. Can you help point it out which SPI parameter configuration is incorrect in KW38 chip board?
.whichCtar = kDSPI_Ctar0, // 0
.ctarConfig = {
.baudRate = 500000,
.bitsPerFrame = 8,
.cpol = kDSPI_ClockPolarityActiveHigh, // 0
.cpha = kDSPI_ClockPhaseFirstEdge, // 0
.direction = kDSPI_MsbFirst,
.pcsToSckDelayInNanoSec = 1000,
.lastSckToPcsDelayInNanoSec = 1000,
.betweenTransferDelayInNanoSec = 1000,
},
.whichPcs = (dspi_which_pcs_t)0,
.pcsActiveHighOrLow = kDSPI_PcsActiveLow, // 1
.enableContinuousSCK = (bool) 0,
.enableRxFifoOverWrite = (bool) 0,
.enableModifiedTimingFormat = (bool) 0,
.samplePoint = kDSPI_SckToSin0Clock // 0