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

How to use app_scheduler without a softdevice?

I've already posted my problem here. But it seems a dead thread. devzone.nordicsemi.com/.../nrf51822-timer-problems

I ran into trouble when using the app_scheduler without a softdevice. The problem is the call of sd_nvic_critical_region_enter() softdevice function. When not using CRITICAL_REGION_ENTER() / _EXIT() my example code works.

How do use app_scheduler without a softdevice correctly?

Parents
  • Hi,

    I didn't see this case until now, sorry about that. I answered in the case you linked to. There are specific calls to sd_* prefix functions, which will not work if the SoftDevice is not present in flash. If you want to use the scheduler w/o the softdevice, you'll have to "port" the macros that calls sd_*-functions. As I see it, it's only the CRITICAL_REGION macros, which basically just enable/disable interrupts.

    Best regards Håkon

Reply
  • Hi,

    I didn't see this case until now, sorry about that. I answered in the case you linked to. There are specific calls to sd_* prefix functions, which will not work if the SoftDevice is not present in flash. If you want to use the scheduler w/o the softdevice, you'll have to "port" the macros that calls sd_*-functions. As I see it, it's only the CRITICAL_REGION macros, which basically just enable/disable interrupts.

    Best regards Håkon

Children
No Data
Related