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

ble_stack_init nrf_sdh

I am inquiring about a custom device that hangs in the ble_stack_init(); and the result is a fatal error.

The custom device has an nRF52832 

The SDK is the SDK14

The project is a basic UART over bluetooth

The project will run without the fatal error on a nRF52832 DK

I have turned on debugging and have been given three statements:

<info> app: here
0> <debug> nrf_sdh: State request: 0x00000000
0> <debug> nrf_sdh: Notify observer 0x0002B474 => ready
0> <debug> nrf_sdh: State change: 0x00000000
0> <error> app: Fatal

Any help provided would be appreciated. 

Parents
  • Hi

    If the four others fail either way, there's likely something else entirely that is incorrect. Do you have any specific information on where these boards fail? Do they start up at all, and if so, at what point do they fail to connect to the Dongle? A common mistake is to solder on the 16MHz clock 90 degrees the wrong way so the HF clock, and by extension the radio, won't run at all.

    Best regards,

    Simon

Reply
  • Hi

    If the four others fail either way, there's likely something else entirely that is incorrect. Do you have any specific information on where these boards fail? Do they start up at all, and if so, at what point do they fail to connect to the Dongle? A common mistake is to solder on the 16MHz clock 90 degrees the wrong way so the HF clock, and by extension the radio, won't run at all.

    Best regards,

    Simon

Children
  • Simon,

    Thank you! So, the five boards program and run an oled display, properly. I would agree that it is possible there is a hardware issue that is just outside of stable and one just made it.

    I have recently changed my SDK to the 17.02 to see if there was any change, I lost the one working board. I have more to examine on this but for now it no longer works inside 17.02, yes, if I go back to 17.0 it will resume function. The boards do not make it out of the ble_stack_init(); and specifically at the call to nrf_Sdh_enable_request(); still an issue with the LFCLKSRC.

    I will look into utilizing the low frequency crystal with the display. 

  • I think you meant a 32MHz clock which runs the 64MHz internal clock. 

  • I have run the rtc example from the SDK17.02. I have changed the led 1 from pin 17 to pin 27 within pca10040.h, so as to access a via on my board into the scope. I have looked into the sdk_config.h and see on line 65-67

    #ifndef NRFX_CLOCK_CONFIG_LF_SRC
    #define NRFX_CLOCK_CONFIG_LF_SRC 1
    #endif
    I presume the 4Hz signal apparent on my scope from pin27 of all five boards is run from the low frequency oscillator on my board?
Related