Open
Description
Guys, I'm using the library for one of my projects using generic nRF51822 (v3) module where I'm using BLE peripheral (BLE UART) to send some data through I2C to some external device. I took examples from your library & built my code on that. Now I'm facing two issues:
- Sometimes I2C data sent is corrupt
- Sometimes I2C data transmission hangs nRF51822 (with SCL or SDA always low)
I did some debug & here is what I found:
- I'm sending multiple I2C data bytes after each interval & I found that some clock cycles or some data is not sent over I2C.
- Slave has fixed frequency set & clock stretching disabled so it must be caused by master only (especially SCL always low)
After going through some Nordic doc & threads, I found that BLE peripheral has higher priority & can cause issue to TWI.
- What & where is the priority of TWI set in the library?
- Is DMA enabled for TWI?
- Is TWI intialised with blocking or non blocking mode in the library? Where can I change it?
Metadata
Metadata
Assignees
Labels
No labels