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

TWI Switch between easyDMA and normal read

Hi,

I am reading a BMX055 via I2C which consists of three sensors with three addresses. I got the easyDMA running to read 10 times the gyro using the PPI and the data ready interrupt. Now after 10 readings I want to read once the accelerometer and the magnetometer. But if I try to read with

nrf_drv_twi_tx(&m_twi_instance, address, &reg, 1, false); nrf_drv_twi_rx(&m_twi_instance, address, p_data, length);

I get the NRF_ERROR_BUSY which means that the TWIM is still in use. So here is my question how can I switch from easyDMA reading to normal reading.

Thanks and kind regards,

C.

Parents Reply Children
No Data
Related