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

how to avoid softdevice interrupts during i2c read operation

hi, i am reading mpu6050 with nrf51822. every now and then the data got corrupt because of softDevice interrupts. if i don't use Softdevice the it runs perfectly but when i use softdevice(S130) it give me some corrupt data and at times it got stuck at some point. how can i avoid this.

Parents
  • If you use I2C (TWI) slave on nRF51 during BLE connection with Nordic stack (SD) then I'm afraid you have a problem. In our case it leaded to redoing HW architecture because it was simply impossible to achieve reliable communication during heavy BLE processing (connection event). I2C (TWI) Master should be OK on nRF51 because it has DMA (since rev 2 or 3 I believe), similar to SPI (should work both Master and Slave). So if you experience problems when nRF51 is Master then are you sure you started from proper SDK example?

    (Another way could be to use non-Nordic BLE stack but I would not go there, most of open-source promising projects focus on nRF52 now.)

Reply
  • If you use I2C (TWI) slave on nRF51 during BLE connection with Nordic stack (SD) then I'm afraid you have a problem. In our case it leaded to redoing HW architecture because it was simply impossible to achieve reliable communication during heavy BLE processing (connection event). I2C (TWI) Master should be OK on nRF51 because it has DMA (since rev 2 or 3 I believe), similar to SPI (should work both Master and Slave). So if you experience problems when nRF51 is Master then are you sure you started from proper SDK example?

    (Another way could be to use non-Nordic BLE stack but I would not go there, most of open-source promising projects focus on nRF52 now.)

Children
No Data
Related