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

nrf_sdh_enable_request causes restart with custom board

I have a custom board uses nRF52810. When I flash my board with examples include SoftDevice (sdk 16.0.0) nRF52810 restarts.
I am debugging with oscillascop and seeing that the code stucks on ble_stack_init(), actually nrf_sdh_enable_request(). It returns NRF_SUCCESS but still causes restart The example I am playing is ble_app_uart (peripheral one). I am flashing in pca10040e folder (s112) which is compatible with nRF52810. What is wrong with my board?

  • When I switch NRF_SDH_CLOCK_LF_SRC to RC in sdk_config.h, it passes ble_stack_init() but stucks somewhere else.
  • The problem occurs with other examples includes SoftDevice as well.

 

  • Here are Mouser web pages for my crystals:
    32.768kHz (XL1-XL2)
    32mHz      (XC1-XC2)

  • Hi

    These oscillators seem to be correct. Are you able to reproduce this on more than one board? Please make sure the capacitors are indeed 12pF, and that the oscillator is properly soldered on and working (you can try switching out the 32MHz oscillator in case it is faulty). 

    Best regards,

    Simon

  • Solders were made properly, I am sure the capacitors are indeed 12pF. I have worked on several seperated boards.

    What if the problem is about the software? What if I am missing something critical?

    What should I do from scratch to make my board work. For example, if I want to work with beacon example in SDK, what is the correct way to do it ?

    -I am using the configuration in PCA10040e folder. I have already removed DEVELOP_IN_NRF52832 and NRFX_COREDEP_DELAY_US_LOOP_CYCLES definitions. What is the next ? Should I change anything in sdk_config.h file? 

  • Hi

    The only step that should be necessary in order to run a PCA10040e example on an nRF52810 SoC should be to remove the defines you mention. The reason I'm leaning toward this being a hardware issue is due to the fact that you're not able to start the HF clock with the snippet you posted below.

    How do you flash the project to your device? What IDE are you using?

    cann0021 said:
    I have worked on several seperated boards.

     Does this mean that you see this same issue on several presumably identical boards?

    Best regards,

    Simon

  • I am using Segger Embedded Studio as IDE and this one to flash.

    I have almost 100 boards problematical contains nRF52810. 

1 2 3 4