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

sd_radio_request (timeslot api) how to do real work (longer than a ms)?

Hello,

I'm using SDK16 with the s332-6.1.1 softdevice in ANT mode.

When I request a radio timeslot of 10 ms, that works just fine, but if I do anything longer than approx. 1 ms, the softdevice asserts with pc=0x00003d56.

The article at https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/setting-up-the-timeslot-api only toggles an LED. That works just fine, but I need to talk to a 1-wire device for 8.6 ms without interruption. How is this supposed to work?

Replacing the toggle LED call with a nrf_delay_ms(1) will show the problem in the mentioned example code.

It looks like you can only do very tiny amounts of work and then need to return the control back to the softdevice (even if one requested a long timeslot).

Kind regards,
Sebastian

Related