This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

TWI is not working with SoftDevice

This seems to be a common problem after searching in this forum. In my case, I need to read from an I2C slave and send the data out in BLE. I have made it work without SoftDevice using this library code http://pastebin.com/qLLAy418 . However, it failed to work with SoftDevice. I also tried with another version which has SoftDevice knobs http://pastebin.com/AV6cQK0x. It doesn't work either. I also tried other code github.com/.../twi_hw_master.c that someone claimed to work (devzone.nordicsemi.com/.../), but it doesn't work for me. Can anyone provide any suggestion on this problem?

Parents
  • Just for completeness, this was the waveform of twi_master_hw.c without SoftDevice, which looked quite reasonable. I haven't done it further (like putting delays). On the SoftDevice side, I did TWI read within the SoftDevice stack which should be the highest priority already. But I will try your advice.

Reply
  • Just for completeness, this was the waveform of twi_master_hw.c without SoftDevice, which looked quite reasonable. I haven't done it further (like putting delays). On the SoftDevice side, I did TWI read within the SoftDevice stack which should be the highest priority already. But I will try your advice.

Children
Related