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

SPI more than 4 bytes generates different data

Hi all,

when I try to send 6 bytes of 0xFF, the last bytes change. I use SPI in mode 3. I use the NRF52832 on a custom board using SDK13 with sd v4. See the following screengrab:

image description

This is my code:

void adc_reset(void)
{
	uint32_t err_code;
	uint8_t  m_reset_buf[] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};        
	while(nrf_drv_spi_transfer(&spi, m_reset_buf, 4, NULL, 0) != NRF_SUCCESS);
}

Does anyone know why this happens?

Related