Hi,
I have the separate working codes for the TWI0 and the SPI1. However, when I combine them, it doesn't work: sometimes it takes forever waiting for the NRF_DRV_TWI_EVT_DONE after nrf_drv_twi_tx(), sometimes it makes the SPI communication stops, but I didn't get any errors when those happened. If I comment the TWI0 part or the SPI1 part out, then the other part still works fine so definitely something is wrong when I try to put them together.
I'm having two separte GPIOTE interrupts for receiving data from TWI0 and SPI1. The priority level of TWI0 and SPI1 are both 6, and the priority level of the GPIOTE is 7.
Here is the link to my sdk_config.h file: drive.google.com/.../view. May you let me know what can be wrong?
Thanks,
Han