I'm using an NRF52840, SoftDevice s140, FreeRTOS, SDK 15.3.0.
I'm trying to sample my ADC at high speed, >1khz (10-40kHz).
I implemented the logic from the SAADC exaple, using PPI and nrf_drv_timer, and I managed to set the speed of the trigger timer in the range of microseconds.
But with the softdevice enabled, the timing is very inconsistent and inaccurate. I have read a few comments confirming this, but can't figure out what the alternative is.
What options are there for a high speed timer used in conjunction with the softdevice and freeRTOS?