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

TWI stops working inside FreeRTOS task

I modified TWI_SENSOR_PCA10040 example from 14.10 SDK to run on my NRF52832 device, and it reads from the device address perfectly. However when I wrap reading inside a FreeRTOS task I keep only getting NRF_DRV_TWI_EVT_ADDRESS_NACK events. I've modified no code short of just wrapping the reading function to task. I have a FreeRTOS project i would like to add this sensor reading to, and as it is i'm unable to. Any ideas what i could be doing wrong or how to proceed?

Related