Can softdevice and cli module coexist?

Hi,

I'm trying to migrate bluetooth softdevice to a project contained cli module. I found cli module and softdevice would all create an app timer. The softdevice first created, then the cli module created would cause a crash.

My question is whether softdevice and cli module can coexist? How should the clock module be configured in this scenario? The app timers just only depend on RTC1, can this be configured ?

Thank you!

Parents Reply
  • Hi,

    The clock driver behaves differently when using SoftDevice or not, so depending on how you request the LFCLK (?) that can cause problems. If your application anyway should have the SoftDevice enabled at all times, then simply initialize the SoftDevice before other libraries (though you probably want logging at the very beginning).

    (Also, note that the SoftDevice will always keep the LFCLK running, so there is no need to explicitly request it as long as your app always use a SoftDevice).

Children
Related