Using Rowley Crossstudio for ARM.
Using SDK V15.3.0 and S140 V6.1.1
When calling sd_softdevice_enable(..) it returns 0x1001 ( SVC handler missing ). Any suggestions ?
Using Rowley Crossstudio for ARM.
Using SDK V15.3.0 and S140 V6.1.1
When calling sd_softdevice_enable(..) it returns 0x1001 ( SVC handler missing ). Any suggestions ?
Hi,
Error code 0x1001 means NRF_ERROR_SDM_INCORRECT_INTERRUPT_CONFIGURATION. The API documentation give the following hint to what is causing this:
Incorrect interrupt configuration (can be caused by using illegal priority levels, or having enabled SoftDevice interrupts).
Did you configure any peripherals using the interrupt priority levels reserved for the softdevice?
Best regards,
Jørgen
My bad, i read the error code from the nrf_error.h, not the nrf_error_sdm.h.
But you were correct. I'm using the LF clock to run RTC1 for my system clock, thus the interrupt was enabled, once I removed this line the sd_softdevice_enable returned 0.
But I still need the LF clock to run at all times, but I guess since softdevice uses the same clock I can just enable softdevice first, then rely on that the LF clock is always on as long as softdevice is enabled ?