This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

why SPI easyDMA maxcount is limited to 256byte?

Hi,

In the nrf52.h, SPIM_RXD_Type is defined as below.

typedef struct {
  __IO uint32_t  PTR;/*!< Data pointer */
  __IO uint32_t  MAXCNT;/*!< Maximum number of bytes in receive buffer*/
  __I  uint32_t  AMOUNT;/*!< Number of bytes transferred in the last transaction*/
  __IO uint32_t  LIST;/*!< EasyDMA list type */
} SPIM_RXD_Type;

So, NRF_SPIM0->RXD.MAXCNT can be set more than 256 and up to 2^32-1.

Why nrf_drv_spi_transfer's length argument is limited to 8bit?

I can't use ppi with SPI easyDMA (list feature), because SPI module is used by 3 sensors.

Thank you.

Related