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

Change the priority of the Softdevice

Hi Nordic,

I am trying to do a time critical data acquisition in a BLE based application. 

Earlier I was using software timers. But, since the software timers are not accurate, I was not able to capture all the samples.

Thus I tried the hardware timers. But still, I am not able to capture all the data completely. In the forum , it was stated that Timer 0/1/2 are dedicated for softdevice/software timer and RTC respectively. Thus I tried with Timer 3/4, but I got the same result. Since timer 0/1/2 have other dependencies, timer 3/4 should be compartively more accurate than the other. However I did not see any difference. Can you explain the reason for this....

In one of the questions in forum, it was stated that the timers when used with softdevice are not accurate, as the softdevice has higher priority than timer, thus cpu misses the timer ticks. If so is there any way to change the priority of the softdevice, so as increase the priority of the timer, as it is important for me to capture the data completely, in accordance with the timer.

Thanks :-)

Related