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

Fanstel BT832 module mesh client stuck in nrf_mesh_sdk.c, 187, Initializing softdevice

Fanstel BT832 module mesh client stuck in  nrf_mesh_sdk.c,  187, Initializing softdevice. When I upload the code on the NRF52 DK It works, but when I upload with segger embedded studio it to the Fanstel BT832 module DK it keep stuck on the softdevice (which is the same ‘s132_nrf52_3.1.0_softdevice.hex’) Whilst debugging it gets stuck in mesh_core_setup(); function. I am using the standard light switch example without any changes. I have two BT832 board and both have the same problem. Does anybody know what I am doing wrong?

Parents Reply Children
  • Seeing as "Initializing mesh stack" does not print out on your debug terminal, it seems there there could something wrong either at this line:

    nrf_clock_lf_cfg_t lfc_cfg = {NRF_CLOCK_LF_SRC_XTAL, 0, 0, NRF_CLOCK_LF_ACCURACY_20_PPM};

    or inside the mesh_softdevice_setup(lfc_cfg) function call. 

    Could you check to see what accuracy the external 32.768 kHz low frequency clock has and set it to the correct PPM value? Also, if you take a look at the schematic for the BT 832 module (found at this link), it seems there is a switch SW1 that decides if the low frequency external crystal is connected to the nrf52832 SoC or not. Can you verify that this switch is in the ON position?

    If that doesn't work, you could set some more breakpoints inside mesh_core_setup() to see at which line the error occurs.

  • The switch is on, but I cannot determine what the frequency is at the moment. Cant find the datasheet and don't have an oscilloscope available at the moment. As soon I have updates I will notify you.

Related