nrf_error_invalid_state(error 8) error on nrf52840 custom board, could it be caused by soldering issue?

I am building a nrf52840 custom board and testing the ble_app_blink_pca10056_s140 example from segger
I have a 32MHz crystal and a 32.768khz crystal
And I added the following to sdk_config.h
But I am getting nrf_error_invalid_state(error 8) error in ble_stack_init() - sdh_enable_request() - sd_softdevice_enable
Is there something wrong with my setup?
Or is it possible that I soldered the nrf52840 chip wrong and that is causing this problem?

#define NRFX_CLOCK_CONFIG_LF_SRC 2
#define CLOCK_CONFIG_LF_SRC 2
#define NRF_SDH_CLOCK_LF_SRC 2
#define NRF_SDH_CLOCK_LF_RC_CTIV 0
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 0
#define NRF_SDH_CLOCK_LF_ACCURACY 7

Parents
  • Hi there!

    Which nRF5SDK version are you using?

    Can you check which function inside ble_stack_init() that returns error 8?

    If it's nrf_sdh_enable_request() then it means that the Softdevice has already been initialized before. Check if ble_stack_init() has already been called earlier in your application.

    regards

    Jared 

Reply
  • Hi there!

    Which nRF5SDK version are you using?

    Can you check which function inside ble_stack_init() that returns error 8?

    If it's nrf_sdh_enable_request() then it means that the Softdevice has already been initialized before. Check if ble_stack_init() has already been called earlier in your application.

    regards

    Jared 

Children
Related