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

twi_hw_master and SoftDevice

Hi,

I rely on twi_hw_master (from sdk 7.1.0) to communicate with a sensor. It works without any issues without the SoftDevice. With the SoftDevice enabled, using TWI causes program execution to stop (loop most likely).

I have read similar posts and tried a few suggested solutions. The most promising one being using shortcuts instead of PPI: devzone.nordicsemi.com/.../

While this also works without the SoftDevice, having the SoftDevice enabled causes TWI communication to fail. Note however that program execution continues in this case. Being unable to debug with the SoftDevice enabled, I can't see exactly where it fails. But printing TWI_ERRORSRC from the calling function shows no errors (0x00000000). Note that having the SoftDevice programmed in flash (without enabling it) gives the same result.

So is there any twi_hw* version that works with the newest SoftDevice/SDK? I am also curious as to why the SDK version does not work, as I can't see why using PPI CH0 should be a problem? And the version I linked to using SHORTS?

I know that twi_sw_master works, but it is not an ideal solution.

Any suggestions are appreciated. My only goal is to use the TWI module with the SoftDevice enabled.

Parents Reply Children
No Data
Related