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

What is error_code 4097 in sd_softdevice_enable?

Hello,
I updated a working project based on nRF52832_xxAA 32Mhz crystal, from SoftDevice S132 5.0.0 to 7.0.1,
(set preprocessor NRF_SD_BLE_API_VERSION=7)

now the sd_softdevice_enable returns error_code 4097

  0> -CLOCK_LF_SRC 1
  0> -CLOCK_LF_RC_CTIV 0
  0> -CLOCK_LF_RC_TEMP_CTIV 0
  0> -CLOCK_LF_ACCURACY 1
  0> ret_code 4097
  0> <error> app: Fatal error

I have already tried to change CLOCK_LF_ACCURACY but the error remains
Parents Reply
  • 6 is correct, but there must be an IRQ that's being enabled without being applied with the priority setting from sdk_config.h.

    The interrupt has to be enabled before ble_stack_init() for this error to be triggered. So I suggest you go over initialization before ble_stack_init() and make sure you are configuring the correct priority for all interrupts that you have enabled up until this point.

Children
Related