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

Softdevice consumes too much time

Hello,

I am using nrf52832 with SDK12 with gcc compiler. I have extended the ble_app_template example with 2 services.

I have 1 timer interrupt using RTC(100 ms) and 1 timer interrupt using HF timer(20 micro secs). I am toggling a pin in HF timer interrupt. The low frequency timer has some functionality to send data once connected to a central BLE device. This is not important as I am facing timing issues in advertising phase.

The only issue is the amount of time taken by softdevice to execute. When I see the GPIO on a CRO, I see 4 milli seconds of interruption per advertising interval. This is a continous 4 ms zone when its supposed to be 300 micro seconds at max as specified by softdevice manual. Is it possible that softdevice can take that long amount of time? It hampers systems ability to add any real time task to system. What could be consuming so much time? I am certain the system has no other added load than described here.

As added information, I get the 4ms execution band of softdevice per 25 milliseconds when device is connected.

Kindly provide some suggestion to reduce the time consumed by softdevice.

Parents Reply Children
No Data
Related