about nrf54L15 chip SPI Port on sdk3.2.1.

I used  nrf54L15 chip P2 port's SPI.used  spi_transceive_dt tx 10 bytes. but chip divide two process (8Bytes+2Bytes).this result is not my object. code as below:

int spi00_dma_transceive(const uint8_t *tx, uint8_t *rx, size_t len)
{
    struct spi_buf tx_buf = {
        .buf = (void *)tx,
        .len = len,
    };
    struct spi_buf rx_buf = {
        .buf = rx,
        .len = len,
    };
    struct spi_buf_set tx_set = {
        .buffers = &tx_buf,
        .count   = 1,
    };
    struct spi_buf_set rx_set = {
        .buffers = &rx_buf,
        .count   = 1,
    };
    return spi_transceive_dt(&spi00_dev, &tx_set, &rx_set);
}
Parents Reply Children
No Data
Related