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

Buffer order swap of SAADC used with NRF Mesh

Hello,

I am using NRF52840 with SDK 16.0.0 and Mesh SDK 4.1.0

.I am trying to use SAADC with BLE Mesh(SDK 4.1.0). I used default example of SAADC with multiple channel available in SDK(16.0.0)

Example path: nRF5_SDK_16.0.0_98a08e2\examples\peripheral\saadc

I used 5 Analog input channels and configured it and work perfectly, means gets samples and data buffer order is in sequence, no swapping.

When I used this code with Mesh code, and change SAADC interrupt priority to 3, then It seems to work (no SAADC buffer data swapping). But after 4-5 hours, SAADC gets issue of SAADC data buffer sequence swapped. I read mostly available solution for it. but I think this example implemented these solution already, like use of PPI.

Please help us to solve this problem of SAADC data buffer  order swapping.   

Thank You

Bivay